Skip to content

mlx5 dynamic msix

Saeed Mahameed lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14lib: cpu_rmap: Avoid use after free on rmap->obj array entrieslib/cpu_rmap.c+4 -10 replies
2/14lib: cpu_rmap: Use allocator for rmap entriesinclude/linux/cpu_rmap.h lib/cpu_rmap.c+20 -60 replies
3/14lib: cpu_rmap: Add irq_cpu_rmap_remove to complement irq_cpu_rmap_addinclude/linux/cpu_rmap.h lib/cpu_rmap.c+13 -00 replies
4/14net/mlx5e: Coding style fix, add empty linedrivers/net/ethernet/mellanox/mlx5/core/eq.c+1 -00 replies
5/14net/mlx5: Fix wrong commentdrivers/net/ethernet/mellanox/mlx5/core/pci_irq.c+3 -10 replies
6/14net/mlx5: Modify struct mlx5_irq to use struct msi_mapdrivers/net/ethernet/mellanox/mlx5/core/pci_irq.c+15 -160 replies
7/14net/mlx5: Use newer affinity descriptordrivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c drivers/net/ethernet/mellanox/mlx5/core/mlx5_irq.h drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c +1 more+44 -520 replies
8/14net/mlx5: Improve naming of pci function vectorsdrivers/net/ethernet/mellanox/mlx5/core/pci_irq.c+23 -230 replies
9/14net/mlx5: Refactor completion irq request/release codedrivers/net/ethernet/mellanox/mlx5/core/eq.c+46 -240 replies
10/14net/mlx5: Use dynamic msix vectors allocationdrivers/net/ethernet/mellanox/mlx5/core/eq.c drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c drivers/net/ethernet/mellanox/mlx5/core/main.c +3 more+129 -910 replies
11/14net/mlx5: Move devlink registration before mlx5_loaddrivers/net/ethernet/mellanox/mlx5/core/main.c+7 -70 replies
12/14net/mlx5: Refactor calculation of required completion vectorsdrivers/net/ethernet/mellanox/mlx5/core/eq.c+18 -100 replies
13/14net/mlx5: Use one completion vector if eth is disableddrivers/net/ethernet/mellanox/mlx5/core/dev.c drivers/net/ethernet/mellanox/mlx5/core/devlink.h drivers/net/ethernet/mellanox/mlx5/core/eq.c+20 -120 replies
14/14net/mlx5: Provide external API for allocating vectorsdrivers/net/ethernet/mellanox/mlx5/core/pci_irq.c include/linux/mlx5/driver.h+58 -00 replies

Reviews trailers per patch

11 of 14 patches have a Reviewed-by or Acked-by.

PatchShay Drory
1/14
2/14
3/14
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b
14/14R-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/14] mlx5 dynamic msix

From: Saeed Mahameed <[email protected]>

This patch series adds support for dynamic msix vectors allocation in mlx5.

Eli Cohen Says:

================

The following series of patches modifies mlx5_core to work with the dynamic MSIX API. Currently, mlx5_core allocates all the interrupt vectors it needs and distributes them amongst the consumers. With the introduction of dynamic MSIX support, which allows for allocation of interrupts more than once, we now allocate vectors as we need them. This allows other drivers running on top of mlx5_core to allocate interrupt vectors for their own use. An example for this is mlx5_vdpa, which uses these vectors to propagate interrupts directly from the hardware to the vCPU [1].

As a preparation for using this series, a use after free issue is fixed in lib/cpu_rmap.c and the allocator for rmap entries has been modified. A complementary API for irq_cpu_rmap_add() has also been introduced.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git/patch/?id=0f2bf1fcae96a83b8c5581854713c9fc3407556e

================

Eli Cohen (14):
lib: cpu_rmap: Avoid use after free on rmap->obj array entries
lib: cpu_rmap: Use allocator for rmap entries
lib: cpu_rmap: Add irq_cpu_rmap_remove to complement irq_cpu_rmap_add net/mlx5e: Coding style fix, add empty line
net/mlx5: Fix wrong comment
net/mlx5: Modify struct mlx5_irq to use struct msi_map net/mlx5: Use newer affinity descriptor
net/mlx5: Improve naming of pci function vectors
net/mlx5: Refactor completion irq request/release code net/mlx5: Use dynamic msix vectors allocation
net/mlx5: Move devlink registration before mlx5_load net/mlx5: Refactor calculation of required completion vectors net/mlx5: Use one completion vector if eth is disabled net/mlx5: Provide external API for allocating vectors

 drivers/net/ethernet/mellanox/mlx5/core/dev.c |  14 +-
 .../net/ethernet/mellanox/mlx5/core/devlink.h |  11 +
 drivers/net/ethernet/mellanox/mlx5/core/eq.c  | 220 +++++++++-------
 .../mellanox/mlx5/core/irq_affinity.c         |  42 ++-
 .../net/ethernet/mellanox/mlx5/core/main.c    |  17 +-
 .../ethernet/mellanox/mlx5/core/mlx5_irq.h    |  10 +-
 .../net/ethernet/mellanox/mlx5/core/pci_irq.c | 248 ++++++++++++------
 .../net/ethernet/mellanox/mlx5/core/pci_irq.h |   4 +-
 include/linux/cpu_rmap.h                      |   5 +-
 include/linux/mlx5/driver.h                   |   6 +
 lib/cpu_rmap.c                                |  39 ++-
 11 files changed, 387 insertions(+), 229 deletions(-)
Signature · 1 line
2.39.1