Skip to content

bnxt_en: PTP updates for net-next

Michael Chan netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesApplied 10/10
  2. v110 patches 11 repliesSuperseded

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10bnxt_en: Add new TX timestamp completion definitionsdrivers/net/ethernet/broadcom/bnxt/bnxt.h+26 -00 repliesApplied
2/10bnxt_en: Add is_ts_pkt field to struct bnxt_sw_tx_bddrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt.h+7 -20 repliesApplied
3/10bnxt_en: Allow some TX packets to be unprocessed in NAPIdrivers/net/ethernet/broadcom/bnxt/bnxt.c+15 -60 repliesApplied
4/10bnxt_en: Add TX timestamp completion logicdrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt.h drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +1 more+64 -110 repliesApplied
5/10bnxt_en: Add BCM5760X specific PHC registers mappingdrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt.h drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c+25 -50 repliesApplied
6/10bnxt_en: Refactor all PTP TX timestamp fields into a structdrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h+40 -280 repliesApplied
7/10bnxt_en: Remove an impossible condition check for PTP TX pending SKBdrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h+4 -130 repliesApplied
8/10bnxt_en: Let bnxt_stamp_tx_skb() return error codedrivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c+11 -50 repliesApplied
9/10bnxt_en: Increase the max total outstanding PTP TX packets to 4drivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt.h drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +1 more+68 -300 repliesApplied
10/10bnxt_en: Remove atomic operations on ptp->tx_availdrivers/net/ethernet/broadcom/bnxt/bnxt.c drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h+31 -220 repliesApplied

Reviews trailers per patch

4 of 10 patches have a Reviewed-by or Acked-by.

PatchPavan ChebbiAndy Gospodarek
1/10R-b R-b
2/10R-b R-b
3/10R-b R-b
4/10R-b
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 00/10] bnxt_en: PTP updates for net-next

The first 5 patches implement the PTP feature on the new BCM5760X chips. The main new hardware feature is the new TX timestamp completion which enables the driver to retrieve the TX timestamp in NAPI without deferring to the PTP worker.

The last 5 patches increase the number of TX PTP packets in-flight from 1 to 4 on the older BCM5750X chips. On these older chips, we need to call firmware in the PTP worker to retrieve the timestamp. We use an arry to keep track of the in-flight TX PTP packets.

v2: Patch #2: Fix the unwind of txr->is_ts_pkt when bnxt_start_xmit() aborts.
Patch #4: Set the SKBTX_IN_PROGRESS flag for timestamp packets.

Michael Chan (4):
bnxt_en: Add new TX timestamp completion definitions
bnxt_en: Add is_ts_pkt field to struct bnxt_sw_tx_bd
bnxt_en: Allow some TX packets to be unprocessed in NAPI
bnxt_en: Add TX timestamp completion logic

Pavan Chebbi (6):
bnxt_en: Add BCM5760X specific PHC registers mapping
bnxt_en: Refactor all PTP TX timestamp fields into a struct
bnxt_en: Remove an impossible condition check for PTP TX pending SKB
bnxt_en: Let bnxt_stamp_tx_skb() return error code
bnxt_en: Increase the max total outstanding PTP TX packets to 4
bnxt_en: Remove atomic operations on ptp->tx_avail

 drivers/net/ethernet/broadcom/bnxt/bnxt.c     | 106 +++++++-----
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  42 ++++-
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 151 +++++++++++++-----
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h |  36 ++++-
 4 files changed, 252 insertions(+), 83 deletions(-)
Signature · 1 line
2.30.1