net/ixgbe: fix mbuf leak
authorQiming Chen <chenqiming_huawei@163.com>
Wed, 1 Sep 2021 07:22:37 +0000 (15:22 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 6 Sep 2021 01:46:22 +0000 (03:46 +0200)
commitd54b51efb6ef12b8cdfc7316316d99e2a762e1cd
tree25d7bb3050e22de5523329860eeda4c11b41e3ae
parentcc8aaa258f31cf28776141e2e2f9c370bbb9ae55
net/ixgbe: fix mbuf leak

A local test found that repeated port start and stop operations during
the continuous SSE vector bufflist receiving process will cause the mbuf
resource to run out. The final positioning is when the port is stopped,
the mbuf of the pkt_first_seg pointer is not released. Resources leak.
The patch scheme is to judge whether the pointer is empty when the port
is stopped, and release the corresponding mbuf if it is not empty.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ixgbe/ixgbe_rxtx.c