net/bonding: fix reference count on mbufs
authorMin Hu (Connor) <humin29@huawei.com>
Fri, 28 Jan 2022 02:25:33 +0000 (10:25 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jan 2022 14:16:22 +0000 (15:16 +0100)
commit814e79f3afad8c45c6922617f26292af3221ae2b
treea936647fa50151660a430b18baa8bbccc3226a91
parentac5341f5f9bab7b87b1a71761c40d204a7e6ab86
net/bonding: fix reference count on mbufs

In bonding Tx broadcast mode, Packets should be sent by every slave,
but only one mbuf exits. The solution is to increment reference count
on mbufs, but it ignores multi segments.

This patch fixed it by adding reference for every segment in multi
segments Tx scenario.

Fixes: 2efb58cbab6e ("bond: new link bonding library")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/bonding/rte_eth_bond_pmd.c