Re: [dpdk-dev] [PATCH] net/i40e: fix mbuf fast free wrong check

2021-04-08 Thread Zhang, Qi Z
> -Original Message- > From: Yang, MurphyX > Sent: Wednesday, April 7, 2021 2:37 PM > To: dev@dpdk.org > Cc: Yang, Qiming ; Guo, Jia ; > Xing, Beilei ; Zhang, Qi Z ; > Yang, > SteveX ; Zhang, RobinX ; > Yang, MurphyX > Subject: [PATCH] net/i40e: fix mbuf fast free wrong check > > If

[dpdk-dev] [PATCH] net/i40e: fix mbuf fast free wrong check

2021-04-06 Thread Murphy Yang
If no offload flags are set, then 0 == 0 & is true. This means that if DEV_TX_OFFLOAD_MBUF_FAST_FREE is not set (and no other flags are set) then this check will still enable `tx_simple_allowed`. This patch adds the 'offloads' flag not equal zero to avoid this scenario. Bugzilla ID: 665 Fixes: 3