net/iavf: fix mbuf leak
authorQiming Chen <chenqiming_huawei@163.com>
Thu, 16 Sep 2021 14:04:00 +0000 (22:04 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 22 Sep 2021 07:05:50 +0000 (09:05 +0200)
commit1028e5bc36b4dd4ae51580eb3e45410b6c82e153
tree22b7098e7bff1eb0d00414ddf7cbaf65354ab064
parent437dbd2fd4289c32e2937a1e7dbe95645457dfff
net/iavf: fix mbuf leak

In the iavf_dev_rx_queue_start function, if the iavf_switch_queue
or iavf_switch_queue_lv function fails, the previously applied mbuf
is not released, resulting in leakage. The patch fixes the problem.

Fixes: 9cf9c02bf6ee ("net/iavf: add enable/disable queues for large VF")
Cc: stable@dpdk.org
Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_rxtx.c