[dpdk-stable] [dpdk-dev] [PATCH v4] net/af_packet: improve Tx statistics accuracy

Ferruh Yigit ferruh.yigit at intel.com
Mon Oct 21 20:15:34 CEST 2019


On 10/18/2019 4:15 PM, Ferruh Yigit wrote:
> On 10/18/2019 3:24 PM, Flavia Musatescu wrote:
>> When sendto call fails and ENOBUFS/EAGAIN error is being set
>> some of the packets are actually successfully transmitted.
>> There is no available count of those packets, so in order to
>> make the statistics more accurate, all the previously enqueued
>> packets will be considered successful, even though this is not
>> entirely correct.
>>
>> Statistics numbers before this update:
>>
>> Pktgen:
>>    Total Rx Pkts:               1360084
>>          Tx Pkts:               2000000
>> testpmd:
>>    RX-packets: 1408346  RX-missed: 0       RX-bytes:  84503418
>>    TX-packets: 526486   TX-errors: 881851  TX-bytes:  31589724
>>
>> Statistics numbers after this update:
>>
>> Pktgen:
>>    Total Rx Pkts:               1329872
>>          Tx Pkts:               2000000
>> testpmd:
>>    RX-packets: 1389156  RX-missed: 0       RX-bytes:  83349360
>>    TX-packets: 1389156  TX-errors: 0       TX-bytes:  83349360
>>
>> Fixes: 74b7fc0a0ff1 ("net/af_packet: fix packet bytes counting")
>> Cc: ciwillia at brocade.com
>> Cc: stable at dpdk.org
>>
>> Signed-off-by: Flavia Musatescu <flavia.musatescu at intel.com>
> 
> Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>
> 

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


More information about the stable mailing list