[PATCH] net/nfp: update descriptors logic

Ferruh Yigit ferruh.yigit at amd.com
Thu Jan 19 13:41:06 CET 2023


On 11/22/2022 1:09 PM, Niklas Söderlund wrote:
> From: Jin Liu <jin.liu at corigine.com>
> 
> The minimum value of TX/RX descriptors for NFP3800 card is not same
> with NFP4000 card, the minimum value of NFP4000 card is 256 while
> NFP3800 card is 512, add the minimum descriptor macro for NFP3800
> card.
> 
> Modify the logic of get descriptor value, assign the value of descriptor
> for the corresponding network card according to its type.
> 
> In TX stage, firmware with NFD3 use one descriptor per packet while
> firmware with NFDk use two descriptors. In order to be consistent
> with the kernel driver, the number of descriptor of firmware with
> NFDk should be divided by 2.
> 
> Signed-off-by: Jin Liu <jin.liu at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at corigine.com>
> Signed-off-by: Niklas Söderlund <niklas.soderlund at corigine.com>

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


More information about the dev mailing list