- Timestamp:
- 04/06/16 17:01:41 (5 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 74516fe, f030e50
- Parents:
- 38c00dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_dpdk.c
rb585975 rbb0a1f4 135 135 #else 136 136 # define DPDK_USE_LOG_LEVEL 0 137 #endif 138 139 /* 1.8.0-rc2 140 * rx/tx_conf thresholds can be set to NULL in rte_eth_rx/tx_queue_setup 141 * this uses the default values, which are better tuned per device 142 * See issue #26 143 */ 144 #if RTE_VERSION >= RTE_VERSION_NUM(1, 8, 0, 2) 145 # define DPDK_USE_NULL_QUEUE_CONFIG 1 146 #else 147 # define DPDK_USE_NULL_QUEUE_CONFIG 0 137 148 #endif 138 149 … … 898 909 */ 899 910 ret = rte_eth_tx_queue_setup(format_data->port, format_data->queue_id, 900 format_data->nb_tx_buf, rte_socket_id(), &tx_conf); 911 format_data->nb_tx_buf, rte_socket_id(), 912 DPDK_USE_NULL_QUEUE_CONFIG ? NULL : &tx_conf); 901 913 if (ret < 0) { 902 914 snprintf(err, errlen, "Intel DPDK - Cannot configure TX queue on port" … … 908 920 ret = rte_eth_rx_queue_setup(format_data->port, format_data->queue_id, 909 921 format_data->nb_rx_buf, rte_socket_id(), 910 &rx_conf, format_data->pktmbuf_pool); 922 DPDK_USE_NULL_QUEUE_CONFIG ? NULL : &rx_conf, 923 format_data->pktmbuf_pool); 911 924 if (ret < 0) { 912 925 snprintf(err, errlen, "Intel DPDK - Cannot configure RX queue on port"
Note: See TracChangeset
for help on using the changeset viewer.