[PATCH] net/nfp: fix jumbo packet descriptors for NFDk

Ferruh Yigit ferruh.yigit at amd.com
Mon Oct 16 15:25:37 CEST 2023


On 10/10/2023 7:06 AM, Chaoyong He wrote:
> From: Long Wu <long.wu at corigine.com>
> 
> When sending a jumbo packet on NFDk the packet must be split between
> multiple descriptors. The first descriptor contains the packet header
> and is limited to NFDK_DESC_TX_DMA_LEN_HEAD bytes. If the packet is
> large, one or more payload descriptors, without a packet header, and
> a size limit of NFDK_DESC_TX_DMA_LEN bytes are appended.
> 
> When adjusting the coding style for the for NFDk datapath an error was
> made and the total packet size was modified when creating the first
> descriptor. This resulted in no payload descriptors being created and
> the jumbo packets where truncated.
> 
> Fix this by not modifying the total packet length when constructing the
> first descriptor, allowing one or more payload descriptors to be
> created.
> 
> Fixes: d7f6d9b21ffa ("net/nfp: adjust coding style for NFDk")
> Cc: chaoyong.he at corigine.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Long Wu <long.wu 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