netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] bnxt_en: Support configurable PTP TX timeout
@ 2024-02-29  7:02 Michael Chan
  2024-02-29  7:02 ` [PATCH net-next 1/2] bnxt_en: Introduce devlink runtime driver param to set ptp tx timeout Michael Chan
  2024-02-29  7:02 ` [PATCH net-next 2/2] bnxt_en: Retry for TX timestamp from FW until timeout specified Michael Chan
  0 siblings, 2 replies; 15+ messages in thread
From: Michael Chan @ 2024-02-29  7:02 UTC (permalink / raw)
  To: davem
  Cc: netdev, edumazet, kuba, pabeni, pavan.chebbi, andrew.gospodarek,
	jiri, richardcochran

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

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(-)

-- 
2.30.1


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-03-07  4:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29  7:02 [PATCH net-next 0/2] bnxt_en: Support configurable PTP TX timeout Michael Chan
2024-02-29  7:02 ` [PATCH net-next 1/2] bnxt_en: Introduce devlink runtime driver param to set ptp tx timeout Michael Chan
2024-02-29  9:27   ` Vadim Fedorenko
2024-02-29 17:11   ` Jiri Pirko
2024-02-29 17:30     ` Jakub Kicinski
2024-02-29 21:22       ` Vadim Fedorenko
2024-03-01  1:49         ` Jakub Kicinski
2024-03-01  7:39           ` Pavan Chebbi
2024-03-01 17:18             ` Jakub Kicinski
2024-03-07  3:50               ` Pavan Chebbi
2024-03-07  4:19                 ` Jakub Kicinski
2024-03-01 11:34         ` Jiri Pirko
2024-02-29  7:02 ` [PATCH net-next 2/2] bnxt_en: Retry for TX timestamp from FW until timeout specified Michael Chan
2024-02-29  9:23   ` Vadim Fedorenko
2024-02-29 16:43     ` Michael Chan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).