numam-dpdk/drivers/net/nfp
Chaoyong He 0c48f5ad44 net/nfp: fix Rx descriptor DMA address
When 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: bb340f56fc ("net/nfp: fix memory leak in Rx")
Cc: stable@dpdk.org

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
..
flower net/nfp: support new solution for tunnel decap action 2022-10-25 10:53:33 +02:00
nfpcore net/nfp: add flower ctrl VNIC 2022-10-05 18:09:21 +02:00
meson.build net/nfp: add structures and functions for flow offload 2022-10-21 15:00:25 +02:00
nfp_common.c net/nfp: fix out-of-bounds write for VXLAN 2022-11-06 10:30:28 +01:00
nfp_common.h net/nfp: fix infinite loop 2022-10-21 15:00:25 +02:00
nfp_cpp_bridge.c net/nfp: fix CPP bridge service exit 2022-10-25 10:53:33 +02:00
nfp_cpp_bridge.h net/nfp: fix infinite loop 2022-10-21 15:00:25 +02:00
nfp_ctrl.h net/nfp: modify RSS logic 2022-06-17 15:32:41 +02:00
nfp_ethdev_vf.c net/nfp: fix internal buffer size and MTU check 2022-10-21 11:56:59 +02:00
nfp_ethdev.c net/nfp: fix infinite loop 2022-10-21 15:00:25 +02:00
nfp_flow.c net/nfp: fix mask table free 2022-11-18 13:40:24 +01:00
nfp_flow.h net/nfp: prepare for IPv4 GRE tunnel decap flow action 2022-10-25 10:53:33 +02:00
nfp_logs.h net/nfp: use ethdev debug macro to control Rx/Tx log 2022-09-20 19:54:35 +02:00
nfp_rxtx.c net/nfp: fix Rx descriptor DMA address 2022-11-18 15:00:01 +01:00
nfp_rxtx.h net/nfp: move Rx/Tx functions to header file 2022-10-05 18:09:21 +02:00