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: <20241008183222.137702-1-tariqt@nvidia.com>
Date: Tue, 8 Oct 2024 21:32:08 +0300
From: Tariq Toukan <tariqt@...dia.com>
To: "David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
	Paolo Abeni <pabeni@...hat.com>, Eric Dumazet <edumazet@...gle.com>
CC: <netdev@...r.kernel.org>, Saeed Mahameed <saeedm@...dia.com>, Gal Pressman
	<gal@...dia.com>, Leon Romanovsky <leonro@...dia.com>, <cjubran@...dia.com>,
	<cratiu@...dia.com>, Tariq Toukan <tariqt@...dia.com>
Subject: [PATCH net-next 00/14] net/mlx5: qos: Refactor esw qos to support new features

Hi,

This patch series by Cosmin and Carolina prepares the mlx5 qos infra for
the upcoming feature of cross E-Switch scheduling.

Noop cleanups:
net/mlx5: qos: Flesh out element_attributes in mlx5_ifc.h
net/mlx5: qos: Rename vport 'tsar' into 'sched_elem'.
net/mlx5: qos: Consistently name vport vars as 'vport'
net/mlx5: qos: Refactor and document bw_share calculation
net/mlx5: qos: Rename rate group 'list' as 'parent_entry'

Refactor the code with the goal of moving groups out of E-Switches:
net/mlx5: qos: Maintain rate group vport members in a list
net/mlx5: qos: Always create group0
net/mlx5: qos: Drop 'esw' param from vport qos functions
net/mlx5: qos: Store the eswitch in a mlx5_esw_rate_group

Move groups from an E-Switch into an mlx5_qos_domain:
net/mlx5: qos: Store rate groups in a qos domain

Refactor locking to use a new mutex in the qos domain:
net/mlx5: qos: Refactor locking to a qos domain mutex

In follow-up patchsets, we'll allow qos domains to be shared
between E-Switches of the same NIC.

The two top patches are simple enhancements.

Series generated against:
commit f95b4725e796 ("net: phy: mxl-gpy: add missing support for TRIGGER_NETDEV_LINK_10")

Regards,
Tariq


Carolina Jubran (2):
  net/mlx5: Unify QoS element type checks across NIC and E-Switch
  net/mlx5: Add support check for TSAR types in QoS scheduling

Cosmin Ratiu (12):
  net/mlx5: qos: Flesh out element_attributes in mlx5_ifc.h
  net/mlx5: qos: Rename vport 'tsar' into 'sched_elem'.
  net/mlx5: qos: Consistently name vport vars as 'vport'
  net/mlx5: qos: Refactor and document bw_share calculation
  net/mlx5: qos: Maintain rate group vport members in a list
  net/mlx5: qos: Always create group0
  net/mlx5: qos: Drop 'esw' param from vport qos functions
  net/mlx5: qos: Store the eswitch in a mlx5_esw_rate_group
  net/mlx5: qos: Add an explicit 'dev' to vport trace calls
  net/mlx5: qos: Rename rate group 'list' as 'parent_entry'
  net/mlx5: qos: Store rate groups in a qos domain
  net/mlx5: qos: Refactor locking to a qos domain mutex

 .../mellanox/mlx5/core/esw/devlink_port.c     |   4 +-
 .../mlx5/core/esw/diag/qos_tracepoint.h       |  39 +-
 .../ethernet/mellanox/mlx5/core/esw/legacy.c  |   6 +-
 .../net/ethernet/mellanox/mlx5/core/esw/qos.c | 668 ++++++++++--------
 .../net/ethernet/mellanox/mlx5/core/esw/qos.h |   9 +-
 .../net/ethernet/mellanox/mlx5/core/eswitch.c |  22 +-
 .../net/ethernet/mellanox/mlx5/core/eswitch.h |  32 +-
 .../mellanox/mlx5/core/eswitch_offloads.c     |   4 +-
 .../ethernet/mellanox/mlx5/core/mlx5_core.h   |   2 +
 drivers/net/ethernet/mellanox/mlx5/core/qos.c |  12 +-
 drivers/net/ethernet/mellanox/mlx5/core/rl.c  |  58 ++
 include/linux/mlx5/mlx5_ifc.h                 |  67 +-
 12 files changed, 547 insertions(+), 376 deletions(-)

-- 
2.44.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ