Changeset bb0a1f4


Ignore:
Timestamp:
04/06/16 17:01:41 (5 years ago)
Author:
Richard Sanger <rsanger@…>
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
Message:

Use the default DPDK device driver rx/tx thresholds

DPDK 1.8 introduced default thresholds per device driver, these
perform better then what we were using.

Quickly tested rx and tx on DPDK 1.7.1, 1.8 & 2.0 with the
1G 82580 NIC and 10G 82599. All appear to functional, and
should be faster with the i40e.

Fixes issue #26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    rb585975 rbb0a1f4  
    135135#else
    136136#       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
    137148#endif
    138149
     
    898909     */
    899910    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);
    901913    if (ret < 0) {
    902914        snprintf(err, errlen, "Intel DPDK - Cannot configure TX queue on port"
     
    908920    ret = rte_eth_rx_queue_setup(format_data->port, format_data->queue_id,
    909921                            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);
    911924    if (ret < 0) {
    912925        snprintf(err, errlen, "Intel DPDK - Cannot configure RX queue on port"
Note: See TracChangeset for help on using the changeset viewer.