[PATCH v2] net/nfp: fix the Tx descriptor free logic of nfd3

Ferruh Yigit ferruh.yigit at amd.com
Thu May 18 16:43:32 CEST 2023


On 5/18/2023 12:02 PM, Chaoyong He wrote:
> In the Tx descriptor free logic of nfd3, the former logic might force
> cast a negative number into a very big unsigned number, and which will
> cause potential problem in the xmit loop.
> 
> The xmit loop will continue in the place where it should break, and will
> overwrite the Tx descriptor which is not free to use by the PMD.
> 
> Fixes: 74a640dac864 ("net/nfp: avoid modulo operations for handling ring wrapping")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
>

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list