numam-dpdk/drivers
Kalesh AP 4171ac66e5 net/bnxt: fix error handling in VNIC prepare
Resources should be freed on error conditions. i.e, VNIC and
VNIC context created in HW and memory allocated in
bnxt_vnic_grp_alloc() should be freed.

Added a new function bnxt_vnic_destroy() to do the cleanup.
This lightweight function can be used in flow destroy/flush
path to avoid duplicate code as well.

Fixes: d24610f7bf ("net/bnxt: allow flow creation when RSS is enabled")
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>
2021-06-09 00:10:25 +02:00
..
baseband log: register with standardized names 2021-05-11 15:17:55 +02:00
bus bus/pci: configure PCI bus master 2021-06-04 09:38:08 +02:00
common common/sfc_efx/base: add missing MCDI response length checks 2021-05-19 11:32:49 +02:00
compress log: register with standardized names 2021-05-11 15:17:55 +02:00
crypto crypto/zuc: fix build with GCC 11 2021-05-19 14:54:29 +02:00
event event/dlb2: select scalar dequeue by default 2021-05-21 15:40:52 +02:00
mempool log: register with standardized names 2021-05-11 15:17:55 +02:00
net net/bnxt: fix error handling in VNIC prepare 2021-06-09 00:10:25 +02:00
raw raw/ioat: remove special case for no status reporting 2021-05-12 20:48:41 +02:00
regex log: register with standardized names 2021-05-11 15:17:55 +02:00
vdpa vdpa/mlx5: fix device unplug 2021-05-18 10:15:19 +02:00
meson.build log: register with standardized names 2021-05-11 15:17:55 +02:00