From: Kalesh AP Date: Thu, 23 Apr 2020 15:02:24 +0000 (+0530) Subject: net/bnxt: fix VNIC Rx queue count on VNIC free X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bc75bdb60f4ea3eea4de76a60312711447055852;p=dpdk.git net/bnxt: fix VNIC Rx queue count on VNIC free bnxt_free_one_vnic and bnxt_setup_one_vnic are called on configuring port vlan stripping. bnxt_setup_one_vnic keeps incrementing the vnic rx_queue_cnt. Fix to reset vnic rx_queue_cnt in bnxt_free_one_vnic. Fixes: cfadfee41ed1 ("net/bnxt: fix VLAN strip") Cc: stable@dpdk.org Signed-off-by: Kalesh AP Reviewed-by: Somnath Kotur --- diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 6d42e3f85f..c2bee54d16 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -2173,6 +2173,8 @@ static int bnxt_free_one_vnic(struct bnxt *bp, uint16_t vnic_id) rte_free(vnic->fw_grp_ids); vnic->fw_grp_ids = NULL; + vnic->rx_queue_cnt = 0; + return 0; }