[dpdk-dev,2/3] net/bnxt: remove redundant code parsing pool_map

Message ID 20171012173521.54626-3-ajit.khaparde@broadcom.com (mailing list archive)
State Superseded, archived
Delegated to: Ferruh Yigit
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Ajit Khaparde Oct. 12, 2017, 5:35 p.m. UTC
  This patch removes some redundant code from bnxt_mq_rx_configure().

Fixes: 8056afdf97d7 ("net/bnxt: fix the association of a MACVLAN per VNIC)

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
 drivers/net/bnxt/bnxt_rxq.c | 11 -----------
 1 file changed, 11 deletions(-)
  

Patch

diff --git a/drivers/net/bnxt/bnxt_rxq.c b/drivers/net/bnxt/bnxt_rxq.c
index a2fa7e40f..67d9bfe9d 100644
--- a/drivers/net/bnxt/bnxt_rxq.c
+++ b/drivers/net/bnxt/bnxt_rxq.c
@@ -170,17 +170,6 @@  int bnxt_mq_rx_configure(struct bnxt *bp)
 			rc = -ENOMEM;
 			goto err_out;
 		}
-		for (j = 0; j < conf->nb_pool_maps; j++) {
-			if (conf->pool_map[j].pools & (1UL << i)) {
-				RTE_LOG(ERR, PMD,
-					"Add vlan %u to vmdq pool %u\n",
-					conf->pool_map[j].vlan_id, i);
-
-				filter->l2_ivlan = conf->pool_map[j].vlan_id;
-				filter->enables |=
-				HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN;
-			}
-		}
 		/*
 		 * TODO: Configure & associate CFA rule for
 		 * each VNIC for each VMDq with MACVLAN, MACVLAN+TC