numam-dpdk/drivers
Ferruh Yigit f62490e64d net/pcap: fix infinite Rx with large files
Packet forwarding is not working when infinite Rx feature is used with
large .pcap files that has high number of packets.

The problem is number of allocated mbufs are less than the infinite Rx
ring size, and all mbufs consumed to fill the ring, so there is no mbuf
left for forwarding.

Current logic can not detect that infinite Rx ring is not filled
completely and no more mbufs left, and setup continues which leads
silent fail on packet forwarding.

There isn't much can be done when there is not enough mbuf for the given
.pcap file, so additional checks added to detect the case and fail
explicitly with an error log.

Bugzilla ID: 595
Fixes: a3f5252e5c ("net/pcap: enable infinitely Rx a pcap file")
Cc: stable@dpdk.org

Reported-by: Cian Ferriter <cian.ferriter@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Cian Ferriter <cian.ferriter@intel.com>
2021-02-04 18:19:37 +01:00
..
baseband config: remove compatibility build defines 2021-01-20 01:43:25 +01:00
bus bus/vdev: add driver IOVA VA mode requirement 2021-01-29 18:16:09 +01:00
common common/mlx5: fix storing synced MAC to internal table 2021-02-04 18:19:37 +01:00
compress compress/mlx5: add supported capabilities 2021-01-27 20:40:03 +01:00
crypto crypto/dpaa2_sec: fix memory allocation check 2021-01-27 20:58:14 +01:00
event eventdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
mempool ethdev: make driver-only headers private 2021-01-29 20:59:09 +01:00
net net/pcap: fix infinite Rx with large files 2021-02-04 18:19:37 +01:00
raw raw/octeontx2_ep: change PCI device ID 2021-01-29 18:16:12 +01:00
regex config: remove compatibility build defines 2021-01-20 01:43:25 +01:00
vdpa vdpa/mlx5: fix configuration mutex cleanup 2021-01-29 18:16:10 +01:00
meson.build build: enable pmdinfogen for Windows 2021-01-25 23:24:38 +01:00