linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL][mlx5-next 0/4] Cached vhca id and adjacent function vports
@ 2025-08-15 19:48 Saeed Mahameed
  2025-08-15 19:48 ` [PATCH mlx5-next 1/4] net/mlx5: mlx5_ifc, Add hardware definitions needed for adjacent vports Saeed Mahameed
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Saeed Mahameed @ 2025-08-15 19:48 UTC (permalink / raw)
  To: Saeed Mahameed, Leon Romanovsky
  Cc: Jason Gunthorpe, linux-rdma, netdev, Jakub Kicinski, Parav Pandit

From: Saeed Mahameed <saeedm@nvidia.com>

Hi Jakub, Jason,

This pull request introduces a preparation patchset for caching vhca_id 
and needed HW bits for the upcoming netdev/eswitch series to support
adjacent function vports.

For more information please see tag log below.

The following changes since commit 8f5ae30d69d7543eee0d70083daf4de8fe15d585:

  Linux 6.17-rc1 (2025-08-10 19:41:16 +0300)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux.git tags/mlx5-next-vhca-id

for you to fetch changes up to 40653f280b2640e5caa94eeedee43e0f1df97704:

  {rdma,net}/mlx5: export mlx5_vport_get_vhca_id (2025-08-15 12:17:47 -0700)

----------------------------------------------------------------
mlx5-next-vhca-id

A preparation patchset for adjacent function vports.

Adjacent functions can delegate their SR-IOV VFs to sibling PFs,
allowing for more flexible and scalable management in multi-host and
ECPF-to-host scenarios. Adjacent vports can be managed by the management
PF via their unique vhca id and can't be managed by function index as the
index can conflict with the local vports/vfs.

This series provides:

- Use the cached vcha id instead of querying it every time from fw
- Query hca cap using vhca id instead of function id when FW supports it
- Add HW capabilities and required definitions for adjacent function vports

----------------------------------------------------------------
Saeed Mahameed (4):
      net/mlx5: mlx5_ifc, Add hardware definitions needed for adjacent vports
      net/mlx5: E-Switch, Cache vport vhca id on first cap query
      net/mlx5: E-Switch, Set/Query hca cap via vhca id
      {rdma,net}/mlx5: export mlx5_vport_get_vhca_id

 drivers/infiniband/hw/mlx5/std_types.c                        |  27 ++++-----------------------
 drivers/net/ethernet/mellanox/mlx5/core/diag/reporter_vnic.c  |   2 ++
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c             |  18 ++++++++++++++++--
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h             |  20 ++++++++++++++++++--
 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c    |  34 +++++++++++++++++-----------------
 drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h           |   2 --
 drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c    |  16 +++++++++++-----
 drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c |  16 ++++++++++++----
 drivers/net/ethernet/mellanox/mlx5/core/vport.c               |  58 ++++++++++++++++++++++++++++++++++++++++++++++++++++------
 include/linux/mlx5/mlx5_ifc.h                                 | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 include/linux/mlx5/vport.h                                    |   2 ++
 11 files changed, 263 insertions(+), 65 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2025-08-21 22:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 19:48 [GIT PULL][mlx5-next 0/4] Cached vhca id and adjacent function vports Saeed Mahameed
2025-08-15 19:48 ` [PATCH mlx5-next 1/4] net/mlx5: mlx5_ifc, Add hardware definitions needed for adjacent vports Saeed Mahameed
2025-08-15 19:48 ` [PATCH mlx5-next 2/4] net/mlx5: E-Switch, Cache vport vhca id on first cap query Saeed Mahameed
2025-08-15 19:49 ` [PATCH mlx5-next 3/4] net/mlx5: E-Switch, Set/Query hca cap via vhca id Saeed Mahameed
2025-08-15 19:49 ` [PATCH mlx5-next 4/4] {rdma,net}/mlx5: export mlx5_vport_get_vhca_id Saeed Mahameed
2025-08-21  8:37 ` [GIT PULL][mlx5-next 0/4] Cached vhca id and adjacent function vports Paolo Abeni
2025-08-21 22:19   ` Saeed Mahameed
2025-08-21 22:48 ` Jakub Kicinski

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