[PATCH] net/nfp: fix invalid control message packets

Ferruh Yigit ferruh.yigit at amd.com
Wed Sep 20 14:35:39 CEST 2023


On 7/13/2023 4:02 AM, Chaoyong He wrote:
> From: Long Wu <long.wu at corigine.com>
> 
> If we add two cards that uses flower firmware into one dpdk-testpmd,
> NFP PMD will printf error log. The reason is that the second card
> uses the control VNIC Rx queue of the first card.
> 
> Because rte_eth_dma_zone_reserve() will reserve new DMA zone if
> DMA zone's name is unique. But if there is already a zone with the
> same name, rte_eth_dma_zone_reserve() will return the pointer of
> the previously DMA zone. We try to reserve DMA zone for each card
> but we use the same name to reserve.
> 
> We use the PCI address to give control VNIC a unique ring name
> to avoid the above situation and let each NIC's ring have its
> own DMA zone.
> 
> Fixes: 945441ebdb9c ("net/nfp: add flower ctrl VNIC")
> Cc: chaoyong.he at corigine.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Long Wu <long.wu at corigine.com>
>

Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>

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


More information about the stable mailing list