| d70157c1 | 09-Sep-2021 |
Qiming Chen <[email protected]> |
net/pcap: improve Rx statistics
In the receiving direction, if alloc mbuf or jumbo process failed, there is no err_pkts count, which makes it difficult to locate the problem. Because alloc mbuf fail
net/pcap: improve Rx statistics
In the receiving direction, if alloc mbuf or jumbo process failed, there is no err_pkts count, which makes it difficult to locate the problem. Because alloc mbuf failed, the rx_nombuf field is counted.
Signed-off-by: Qiming Chen <[email protected]> Acked-by: Ferruh Yigit <[email protected]>
show more ...
|
| f62490e6 | 04-Feb-2021 |
Ferruh Yigit <[email protected]> |
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 allocat
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: a3f5252e5cbd ("net/pcap: enable infinitely Rx a pcap file") Cc: [email protected]
Reported-by: Cian Ferriter <[email protected]> Signed-off-by: Ferruh Yigit <[email protected]> Acked-by: Cian Ferriter <[email protected]>
show more ...
|