mbox series

[net-next,v2,00/10] bnxt_en: PTP updates for net-next

Message ID 20240628193006.225906-1-michael.chan@broadcom.com (mailing list archive)
Headers show
Series bnxt_en: PTP updates for net-next | expand

Message

Michael Chan June 28, 2024, 7:29 p.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org July 1, 2024, 10:30 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Fri, 28 Jun 2024 12:29:55 -0700 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,v2,01/10] bnxt_en: Add new TX timestamp completion definitions
    https://git.kernel.org/netdev/net-next/c/be6b7ca3c2ae
  - [net-next,v2,02/10] bnxt_en: Add is_ts_pkt field to struct bnxt_sw_tx_bd
    https://git.kernel.org/netdev/net-next/c/449da97512f3
  - [net-next,v2,03/10] bnxt_en: Allow some TX packets to be unprocessed in NAPI
    https://git.kernel.org/netdev/net-next/c/ba0155f1e9fc
  - [net-next,v2,04/10] bnxt_en: Add TX timestamp completion logic
    https://git.kernel.org/netdev/net-next/c/1d294b4f903f
  - [net-next,v2,05/10] bnxt_en: Add BCM5760X specific PHC registers mapping
    https://git.kernel.org/netdev/net-next/c/4d588d32b032
  - [net-next,v2,06/10] bnxt_en: Refactor all PTP TX timestamp fields into a struct
    https://git.kernel.org/netdev/net-next/c/92595a0c0223
  - [net-next,v2,07/10] bnxt_en: Remove an impossible condition check for PTP TX pending SKB
    https://git.kernel.org/netdev/net-next/c/573f2a4bfcd4
  - [net-next,v2,08/10] bnxt_en: Let bnxt_stamp_tx_skb() return error code
    https://git.kernel.org/netdev/net-next/c/9bf688d40d66
  - [net-next,v2,09/10] bnxt_en: Increase the max total outstanding PTP TX packets to 4
    https://git.kernel.org/netdev/net-next/c/8aa2a79e9b95
  - [net-next,v2,10/10] bnxt_en: Remove atomic operations on ptp->tx_avail
    https://git.kernel.org/netdev/net-next/c/060338390787

You are awesome, thank you!