Bug 1430 - af_xdp: reset stats has no effect on imissed
Summary: af_xdp: reset stats has no effect on imissed
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: ethdev (show other bugs)
Version: 24.03
Hardware: All All
: Normal minor
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2024-05-01 16:41 CEST by Stephen Hemminger
Modified: 2024-05-01 16:41 CEST (History)
0 users



Attachments

Description Stephen Hemminger 2024-05-01 16:41:03 CEST
Since the AF_XDP PMD queries the kernel to find the number of missed packets,
it does not handle the case where stats have been reset.

Something like:
        ...
        eth_stats_get()
              = stats->imissed was 5 packets
        eth_stats_reset()
        eth_stats_get()
              = stats->imissed will still be 5 packets

The driver needs to record the count in the reset handler and then
offset the read count on the next stats get.

Note You need to log in before you can comment on or make changes to this bug.