This extends the proposed user-supplied timestamps.

The pcapng library converts the TSC into nanoseconds since 1/1/1970,
because that is what the pcapng file format records. Make that
function available for more general use.

The third patch is Dawid's v8, rebased on the first two. 
Some rework was needed to fit in because because adding
new parameter to existing function creates lot of API and deprecation
headaches so rte_pcapng_copy_ts() is added as a new experimental function 
instead.

Dawid Wesierski (1):
  pcapng: add user-supplied timestamp support

Stephen Hemminger (2):
  eal: add function to convert TSC to epoch time
  pcapng: use EAL TSC to epoch conversion

 app/test/test_pcapng.c                 | 108 +++++++++++++++++++++++++++--
 doc/api/doxy-api-index.md              |   1 +
 doc/guides/prog_guide/pcapng_lib.rst   |   4 ++
 doc/guides/rel_notes/release_26_11.rst |  13 ++++
 lib/eal/common/eal_common_timer.c      |  59 ++++++++++++++++
 lib/eal/include/rte_time.h             |  34 +++++++++
 lib/pcapng/rte_pcapng.c                | 122 ++++++++++++++++++---------------
 lib/pcapng/rte_pcapng.h                |  54 ++++++++++++++-
 8 files changed, 333 insertions(+), 62 deletions(-)

Dawid Wesierski (1):
  pcapng: add user-supplied timestamp support

Stephen Hemminger (2):
  eal: add function to convert TSC to epoch time
  pcapng: use EAL TSC to epoch conversion

 app/test/test_pcapng.c                 | 108 +++++++++++++++++++++-
 doc/api/doxy-api-index.md              |   1 +
 doc/guides/prog_guide/pcapng_lib.rst   |   4 +
 doc/guides/rel_notes/release_26_11.rst |  13 +++
 lib/eal/common/eal_common_timer.c      |  59 ++++++++++++
 lib/eal/include/rte_time.h             |  34 +++++++
 lib/pcapng/rte_pcapng.c                | 122 +++++++++++++------------
 lib/pcapng/rte_pcapng.h                |  54 ++++++++++-
 8 files changed, 333 insertions(+), 62 deletions(-)

-- 
2.53.0

Reply via email to