[PATCH] net/nfp: fix length comparison for max DMA length

Ferruh Yigit ferruh.yigit at amd.com
Sat Feb 11 01:53:51 CET 2023


On 2/3/2023 2:23 AM, Chaoyong He wrote:
> From: Richard Donkin <richard.donkin at corigine.com>
> 
> The DMA transfer length is allowed to be as large as
> NFDK_TX_MAX_DATA_PER_HEAD. The existing check would not allow a simple-
> type descriptor to be created for a packet of size
> NFDK_TX_MAX_DATA_PER_HEAD, but it would also not enable gather-type
> descriptors to be created correctly later.
> 
> Change the limit of simple-type descriptors to include packets of size
> NFDK_TX_MAX_DATA_PER_HEAD.
> 
> In practice this fixes traffic with packets of size 4096. Previously
> such packets would not be transmitted correctly.
> 
> Fixes: c73dced48c8c ("net/nfp: add NFDk Tx")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Richard Donkin <richard.donkin at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>

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



More information about the stable mailing list