]> git.droids-corp.org - dpdk.git/commit
net/bonding: fix mbuf fast free usage
authorMin Hu (Connor) <humin29@huawei.com>
Wed, 25 May 2022 01:08:28 +0000 (09:08 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 25 May 2022 16:01:33 +0000 (18:01 +0200)
commit18c41457cbaeaf44a87f88fe861de35c923ab702
treeada73b29a241881807fc41d8404f26f1a40155b6
parent3c4426db54fc24e7a97f2b4000a0a4f30897a104
net/bonding: fix mbuf fast free usage

Usage of 'RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE' offload has two
constraints: per-queue all mbufs comes from the same mempool and
has refcnt = 1.

Bonding mode Broadcast, Tx mbuf has more than one refcnt.
Bonding mode 8023AD, It contains two mempools separately for LACP
packets and other packets. In Tx or Rx, Fast mbuf free will operate
mbuf from different mempool.

This patch will prevent 'RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE' offload
when in bonding mode Broadcast and mode 8023AD.

Fixes: 78aecefed955 ("bond: move param parsing in configure step")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/bonding/rte_eth_bond_pmd.c