Chaoyong He 7aa745d788 net/nfp: fix Rx descriptor DMA address for VNIC
When using flower firmware application, and the ctrl vNIC receiving a
packet that is larger than the mbuf size, the Rx function will break the
receive loop and sent a free list descriptor with random DMA address.

Fix this by moving the increment of the free list descriptor counter
to after the packet size have been checked and acted on.

Fixes: a36634e87e16 ("net/nfp: add flower ctrl VNIC Rx/Tx")

Signed-off-by: Chaoyong He <chaoyong.he@corigine.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@corigine.com>
2022-11-18 15:00:01 +01:00
..
2022-11-15 08:39:14 +01:00
2022-11-21 11:19:10 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00
2022-11-15 08:39:14 +01:00