Thread (4 messages) flat view 4 messages, 2 authors, 2021-02-04

Re: [dpdk-dev] [PATCH] net/pcap: fix byte stats for drop Tx

From: Ferruh Yigit <hidden>
Date: 2021-02-04 16:41:03

On 2/4/2021 3:47 PM, Ferriter, Cian wrote:
quoted
-----Original Message-----
From: Yigit, Ferruh <redacted>
Sent: Wednesday 3 February 2021 17:30
To: Ferriter, Cian <redacted>
Cc: Yigit, Ferruh <redacted>; dev@dpdk.org; stable@dpdk.org
Subject: [PATCH] net/pcap: fix byte stats for drop Tx

Drop Tx path in pcap is Tx that just drops the packets, which is used
for the case only Rx from a pcap file is requested/matters.

The byte stats was calculated using first mbuf segment, which gives
wrong values for multi segmented mbufs, updated to use packet length
instead.

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

Reported-by: Cian Ferriter <redacted>
Signed-off-by: Ferruh Yigit <redacted>
---
Acked-by: Cian Ferriter <redacted>

Tested this with 2 large PCAPs and it works as expected:
Applied to dpdk-next-net/main, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help