mbox series

[net-next,0/2] bnxt_en: Support configurable PTP TX timeout

Message ID 20240229070202.107488-1-michael.chan@broadcom.com (mailing list archive)
Headers show
Series bnxt_en: Support configurable PTP TX timeout | expand

Message

Michael Chan Feb. 29, 2024, 7:02 a.m. UTC
The driver needs to call firmware to retrieve the PTP hardware TX
timestamp for PTP packets.  The PTP packet is timestamped by hardware
right before packet transmission on the wire.  So there is variable
delay on when the timestamp is available.  The current fixed timeout
value of 1 msec passed to the firmware may not be long enough on
busy networks.

Add a devlink driver runtime parameter to allow the user to configure
this timeout value.  Increase the default to 1 second and allow a
maximum of 5 seconds.

Pavan Chebbi (2):
  bnxt_en: Introduce devlink runtime driver param to set ptp tx timeout
  bnxt_en: Retry for TX timestamp from FW until timeout specified

 Documentation/networking/devlink/bnxt.rst     |  7 ++++
 .../net/ethernet/broadcom/bnxt/bnxt_devlink.c | 42 +++++++++++++++++++
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 20 +++++++--
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h |  7 +++-
 4 files changed, 72 insertions(+), 4 deletions(-)