http://bugs.dpdk.org/show_bug.cgi?id=1840

            Bug ID: 1840
           Summary: net/pcap: missing read_clock operation
           Product: DPDK
           Version: 25.07
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ethdev
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

The pcap PMD provides receive timestamps from the pcap interface into the mbuf.
But there are a couple of issues with it.

The units of the timestamp are limited to microseconds now, but the pcap
library has a flag to provide nanosecond resolution. This should be used. One
caveat is that the API is misleading in reporting timestamp. The packet header
struct gives timestamp as a timeval (ie. usec) but if nanosecond mode flag is
used then the timestamp is really in timespec (ie nanoseconds).

The pcap PMD doesn't have a read_clock device operation so the application can
not determine the units of the receive timestamp. Pcap should behave like a
hardware PMD and return the underlying clock value.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to