lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250815194901.298689-1-saeed@kernel.org>
Date: Fri, 15 Aug 2025 12:48:57 -0700
From: Saeed Mahameed <saeed@...nel.org>
To: Saeed Mahameed <saeedm@...dia.com>,
	Leon Romanovsky <leonro@...dia.com>
Cc: Jason Gunthorpe <jgg@...dia.com>,
	linux-rdma@...r.kernel.org,
	netdev@...r.kernel.org,
	Jakub Kicinski <kuba@...nel.org>,
	Parav Pandit <parav@...dia.com>
Subject: [GIT PULL][mlx5-next 0/4] Cached vhca id and adjacent function vports

From: Saeed Mahameed <saeedm@...dia.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ