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

Ferruh Yigit ferruh.yigit at intel.com
Thu Feb 4 17:40:52 CET 2021


On 2/4/2021 3:47 PM, Ferriter, Cian wrote:
> 
> 
>> -----Original Message-----
>> From: Yigit, Ferruh <ferruh.yigit at intel.com>
>> Sent: Wednesday 3 February 2021 17:30
>> To: Ferriter, Cian <cian.ferriter at intel.com>
>> Cc: Yigit, Ferruh <ferruh.yigit at intel.com>; dev at dpdk.org; stable at 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 at dpdk.org
>>
>> Reported-by: Cian Ferriter <cian.ferriter at intel.com>
>> Signed-off-by: Ferruh Yigit <ferruh.yigit at intel.com>
>> ---
> 
> Acked-by: Cian Ferriter <cian.ferriter at intel.com>
> 
> Tested this with 2 large PCAPs and it works as expected:

Applied to dpdk-next-net/main, thanks.


More information about the dev mailing list