From: Ajit Khaparde Date: Tue, 22 May 2018 18:13:42 +0000 (-0700) Subject: net/bnxt: fix Tx and Rx burst for secondary process X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=08aa0ebaca2ca9f39df89bccf87cd55baaa5b769;p=dpdk.git net/bnxt: fix Tx and Rx burst for secondary process We were initializing Tx and Rx burst functions only for primary processes. Fixing it in this patch. Fixes: 88920136688c ("net/bnxt: support xstats get by id") Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index f7f23f75ae..af141d4533 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -3151,10 +3151,10 @@ bnxt_dev_init(struct rte_eth_dev *eth_dev) } skip_init: eth_dev->dev_ops = &bnxt_dev_ops; - if (rte_eal_process_type() != RTE_PROC_PRIMARY) - return 0; eth_dev->rx_pkt_burst = &bnxt_recv_pkts; eth_dev->tx_pkt_burst = &bnxt_xmit_pkts; + if (rte_eal_process_type() != RTE_PROC_PRIMARY) + return 0; if (BNXT_PF(bp) && pci_dev->id.device_id != BROADCOM_DEV_ID_NS2) { snprintf(mz_name, RTE_MEMZONE_NAMESIZE,