# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/01/11344464
- Thread: https://ratatoskr.run/netdev/2026/01/11344457/t.md

```text
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/
> ---
>   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>
```
