summaryrefslogtreecommitdiff
path: root/drivers/net/bnxt/bnxt_rxr.c
diff options
context:
space:
mode:
authorAjit Khaparde <ajit.khaparde@broadcom.com>2018-01-26 09:31:58 -0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-01-29 10:04:28 +0100
commit9b63c6fd70e3df8482179501d9cb314e2effb73c (patch)
tree9dc89ade248646860cfd36d17cca23ee092d9d6d /drivers/net/bnxt/bnxt_rxr.c
parentbe160484a48db22a82b44d56e4f1a30bcb5e4f5f (diff)
downloaddpdk-next-eventdev-9b63c6fd70e3df8482179501d9cb314e2effb73c.zip
dpdk-next-eventdev-9b63c6fd70e3df8482179501d9cb314e2effb73c.tar.gz
dpdk-next-eventdev-9b63c6fd70e3df8482179501d9cb314e2effb73c.tar.xz
net/bnxt: support Rx/Tx queue start/stop
Currently this is implemented entirely in the PMD as there is no explicit support in the HW. Re-program the RSS Table without this queue on stop and add it back to the table on start. Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Diffstat (limited to 'drivers/net/bnxt/bnxt_rxr.c')
-rw-r--r--drivers/net/bnxt/bnxt_rxr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/bnxt/bnxt_rxr.c b/drivers/net/bnxt/bnxt_rxr.c
index 3f07c11..9e70c86 100644
--- a/drivers/net/bnxt/bnxt_rxr.c
+++ b/drivers/net/bnxt/bnxt_rxr.c
@@ -545,6 +545,10 @@ uint16_t bnxt_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
uint16_t ag_prod = rxr->ag_prod;
int rc = 0;
+ /* If Rx Q was stopped return */
+ if (rxq->rx_deferred_start)
+ return 0;
+
/* Handle RX burst request */
while (1) {
cons = RING_CMP(cpr->cp_ring_struct, raw_cons);