Skip to contentSkip to conversation

af_xdp: reset stats has no effect on imissed

DPDK/ethdev Bug 1430 [email protected] 1 participant 2 messages May 1, 2024 – Jul 30, 2024

lore
Share & tools
lore
#0 lore raw

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: [email protected]
          Reporter: [email protected]

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

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

Thomas Monjalon ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Thomas Monjalon ([email protected]) --- Resolved in http://git.dpdk.org/dpdk/commit/?id=3577b1ee97

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.