Thread (11 messages) 11 messages, 3 authors, 2026-01-07

Re: [PATCH net-next 2/6] bnxt_en: Add PTP .getcrosststamp() interface to get device/host times

From: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Date: 2026-01-05 22:18:08

On 1/5/26 21:58, Michael Chan wrote:
From: Pavan Chebbi <pavan.chebbi@broadcom.com>

.getcrosststamp() helps the applications to obtain a snapshot of
device and host time almost taken at the same time. This function
will report PCIe PTM device and host times to any application using
the ioctl PTP_SYS_OFFSET_PRECISE. The device time from the HW is
48-bit and needs to be converted to 64-bit.

Reviewed-by: Somnath Kotur <redacted>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
---
Cc: Vadim Fedorenko <vadim.fedorenko@linux.dev>

v2: Add check for x86 support

v1: https://lore.kernel.org/netdev/20251126215648.1885936-8-michael.chan@broadcom.com/ (local)
---
  drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  2 +
  drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  1 +
  drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 47 +++++++++++++++++++
  3 files changed, 50 insertions(+)
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help