[DPDK/ethdev Bug 1430] af_xdp: reset stats has no effect on imissed

bugzilla at dpdk.org bugzilla at dpdk.org
Wed May 1 16:41:03 CEST 2024


https://bugs.dpdk.org/show_bug.cgi?id=1430

            Bug ID: 1430
           Summary: af_xdp: reset stats has no effect on imissed
           Product: DPDK
           Version: 24.03
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: ethdev
          Assignee: dev at dpdk.org
          Reporter: stephen at networkplumber.org
  Target Milestone: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20240501/14fd64a9/attachment.htm>


More information about the dev mailing list