Skip to content

mlxsw: Preparations for XDP support

Petr Machata bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12mlxsw: core: Remove debug printsdrivers/net/ethernet/mellanox/mlxsw/core.c+0 -60 replies
2/12mlxsw: Check Rx local port in PCI codedrivers/net/ethernet/mellanox/mlxsw/core.c drivers/net/ethernet/mellanox/mlxsw/core.h drivers/net/ethernet/mellanox/mlxsw/pci.c+16 -310 replies
3/12mlxsw: Add struct mlxsw_pci_rx_pkt_infodrivers/net/ethernet/mellanox/mlxsw/pci.c drivers/net/ethernet/mellanox/mlxsw/pci.h drivers/net/ethernet/mellanox/mlxsw/pci_hw.h+57 -90 replies
4/12mlxsw: pci: Use mlxsw_pci_rx_pkt_infodrivers/net/ethernet/mellanox/mlxsw/pci.c+16 -490 replies
5/12mlxsw: pci: Add a separate function for syncing buffers for CPUdrivers/net/ethernet/mellanox/mlxsw/pci.c+22 -80 replies
6/12mlxsw: pci: Store maximum number of portsdrivers/net/ethernet/mellanox/mlxsw/pci.c+20 -00 replies
7/12mlxsw: pci: Add PCI ports arraydrivers/net/ethernet/mellanox/mlxsw/pci.c+30 -00 replies
8/12mlxsw: Add APIs to init/fini PCI portdrivers/net/ethernet/mellanox/mlxsw/core.c drivers/net/ethernet/mellanox/mlxsw/core.h drivers/net/ethernet/mellanox/mlxsw/pci.c+40 -00 replies
9/12mlxsw: pci: Initialize XDP Rx queue info per RDQdrivers/net/ethernet/mellanox/mlxsw/pci.c+12 -20 replies
10/12mlxsw: spectrum: Initialize PCI port with the relevant netdevicedrivers/net/ethernet/mellanox/mlxsw/spectrum.c+3 -00 replies
11/12mlxsw: Set some SKB fields in bus driverdrivers/net/ethernet/mellanox/mlxsw/pci.c drivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c+12 -120 replies
12/12mlxsw: Validate local port from CQE in PCI codedrivers/net/ethernet/mellanox/mlxsw/core.c drivers/net/ethernet/mellanox/mlxsw/pci.c+4 -20 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchIdo Schimmel
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

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

Read the v1 thread

Cover letter [PATCH net-next 00/12] mlxsw: Preparations for XDP support

Amit Cohen writes:

A future patch set will add support for XDP in mlxsw driver. This set adds some preparations.

Patch set overview:
Patch #1 removes debug prints
Patch #2 handles local port from LAG in PCI driver
Patches #3-#4 add rx_pkt_info and use it
Patch #5 adds a separate function for syncing buffer
Patches #6-#8 store mapping between local port to netdevice in PCI driver Patch #9 initializes XDP Rx queue info
Patch #10 initializes PCI port
Patch #11 handles some SKB fields in PCI driver
Patch #12 moves local port validation to PCI driver

Amit Cohen (12):
mlxsw: core: Remove debug prints
mlxsw: Check Rx local port in PCI code
mlxsw: Add struct mlxsw_pci_rx_pkt_info
mlxsw: pci: Use mlxsw_pci_rx_pkt_info
mlxsw: pci: Add a separate function for syncing buffers for CPU
mlxsw: pci: Store maximum number of ports
mlxsw: pci: Add PCI ports array
mlxsw: Add APIs to init/fini PCI port
mlxsw: pci: Initialize XDP Rx queue info per RDQ
mlxsw: spectrum: Initialize PCI port with the relevant netdevice
mlxsw: Set some SKB fields in bus driver
mlxsw: Validate local port from CQE in PCI code

 drivers/net/ethernet/mellanox/mlxsw/core.c    |  38 ++-
 drivers/net/ethernet/mellanox/mlxsw/core.h    |  13 +-
 drivers/net/ethernet/mellanox/mlxsw/pci.c     | 249 +++++++++++++-----
 drivers/net/ethernet/mellanox/mlxsw/pci.h     |   8 +
 drivers/net/ethernet/mellanox/mlxsw/pci_hw.h  |   1 -
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |   8 +-
 .../ethernet/mellanox/mlxsw/spectrum_trap.c   |   6 +-
 7 files changed, 218 insertions(+), 105 deletions(-)
Signature · 1 line
2.47.0