linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net/mlx5: Convert mlx5 to netdev instance locking
@ 2025-05-21 12:08 Tariq Toukan
  2025-05-21 12:08 ` [PATCH net-next 1/5] IB/IPoIB: Enqueue separate work_structs for each flushed interface Tariq Toukan
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Tariq Toukan @ 2025-05-21 12:08 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski, Paolo Abeni, Eric Dumazet,
	Andrew Lunn
  Cc: Jason Gunthorpe, Leon Romanovsky, Saeed Mahameed, Tariq Toukan,
	Richard Cochran, Alexei Starovoitov, Daniel Borkmann,
	Jesper Dangaard Brouer, John Fastabend, linux-rdma, linux-kernel,
	netdev, bpf, Moshe Shemesh, Mark Bloch, Gal Pressman,
	Cosmin Ratiu

Hi,

This series by Cosmin converts mlx5 to use the recently added netdev
instance locking scheme.

Find detailed description by Cosmin below [1].

Regards,
Tariq

[1]
mlx5 manages multiple netdevices, from basic Ethernet to Infiniband
netdevs. This patch series converts the driver to use netdev instance
locking for everything in preparation for TCP devmem Zero Copy.

Because mlx5 is tightly coupled with the ipoib driver, a series of
changes first happen in ipoib to allow it to work with mlx5 netdevs that
use instance locking:

IB/IPoIB: Enqueue separate work_structs for each flushed interface
IB/IPoIB: Replace vlan_rwsem with the netdev instance lock
IB/IPoIB: Allow using netdevs that require the instance lock

A small patch then avoids dropping RTNL during firmware update:
net/mlx5e: Don't drop RTNL during firmware flash

The main patch then converts all mlx5 netdevs to use instance locking:
net/mlx5e: Convert mlx5 netdevs to instance locking


Cosmin Ratiu (5):
  IB/IPoIB: Enqueue separate work_structs for each flushed interface
  IB/IPoIB: Replace vlan_rwsem with the netdev instance lock
  IB/IPoIB: Allow using netdevs that require the instance lock
  net/mlx5e: Don't drop RTNL during firmware flash
  net/mlx5e: Convert mlx5 netdevs to instance locking

 drivers/infiniband/ulp/ipoib/ipoib.h          |  13 +-
 drivers/infiniband/ulp/ipoib/ipoib_ib.c       |  65 ++++++---
 drivers/infiniband/ulp/ipoib/ipoib_main.c     | 127 ++++++++++++------
 drivers/infiniband/ulp/ipoib/ipoib_verbs.c    |   8 +-
 drivers/infiniband/ulp/ipoib/ipoib_vlan.c     |  19 +--
 .../ethernet/mellanox/mlx5/core/en/health.c   |   2 +
 .../net/ethernet/mellanox/mlx5/core/en/ptp.c  |  25 +++-
 .../mellanox/mlx5/core/en/reporter_tx.c       |   4 -
 .../net/ethernet/mellanox/mlx5/core/en/trap.c |  12 +-
 .../ethernet/mellanox/mlx5/core/en_dcbnl.c    |   2 +
 .../ethernet/mellanox/mlx5/core/en_ethtool.c  |   5 -
 .../net/ethernet/mellanox/mlx5/core/en_fs.c   |   4 +
 .../net/ethernet/mellanox/mlx5/core/en_main.c |  82 ++++++-----
 .../net/ethernet/mellanox/mlx5/core/en_rep.c  |   7 +
 .../ethernet/mellanox/mlx5/core/ipoib/ipoib.c |   3 +
 15 files changed, 246 insertions(+), 132 deletions(-)


base-commit: f685204c57e87d2a88b159c7525426d70ee745c9
-- 
2.31.1


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

end of thread, other threads:[~2025-05-22 16:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-21 12:08 [PATCH net-next 0/5] net/mlx5: Convert mlx5 to netdev instance locking Tariq Toukan
2025-05-21 12:08 ` [PATCH net-next 1/5] IB/IPoIB: Enqueue separate work_structs for each flushed interface Tariq Toukan
2025-05-21 12:08 ` [PATCH net-next 2/5] IB/IPoIB: Replace vlan_rwsem with the netdev instance lock Tariq Toukan
2025-05-21 12:09 ` [PATCH net-next 3/5] IB/IPoIB: Allow using netdevs that require the " Tariq Toukan
2025-05-21 12:09 ` [PATCH net-next 4/5] net/mlx5e: Don't drop RTNL during firmware flash Tariq Toukan
2025-05-22 16:00   ` Jakub Kicinski
2025-05-21 12:09 ` [PATCH net-next 5/5] net/mlx5e: Convert mlx5 netdevs to instance locking Tariq Toukan
2025-05-21 18:27   ` Stanislav Fomichev
2025-05-21 20:37     ` Cosmin Ratiu
2025-05-22 15:28       ` Stanislav Fomichev
2025-05-22 15:51 ` [PATCH net-next 0/5] net/mlx5: Convert mlx5 to netdev " Jakub Kicinski
2025-05-22 16:10   ` Leon Romanovsky
2025-05-22 16:30 ` patchwork-bot+netdevbpf

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