net/bnxt: use common function to free VNIC resource
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Mon, 31 May 2021 07:26:41 +0000 (12:56 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 8 Jun 2021 22:27:45 +0000 (00:27 +0200)
commit3e3fecf4b81e243d7e532bce416ebb2524901f7e
treec8c4cf6524b709d7498700617ad9d0000c250eb2
parent25ee03f532b35e261bced83d1d0635d7271d6c9b
net/bnxt: use common function to free VNIC resource

Use the function bnxt_vnic_destroy() to destroy VNIC resources
and thereby eliminate few duplicate code.

Fixes: 8d0a244b40b2 ("net/bnxt: cleanup VNIC after flow validate")
Fixes: 49d0709b257f ("net/bnxt: delete and flush L2 filters cleanly")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_flow.c