[pull request][net-next v0 00/14] mlx5 updates 2021-12-21
flat view
From: Saeed Mahameed <saeed@kernel.org>
Date: 2021-12-22 03:16:15
From: Saeed Mahameed <saeedm@nvidia.com> Hi Dave, Hi Jakub, This series adds 2 main changes to mlx5 1) New Devlink knobs to control EQ sizes, already acked by Jiri and Jakub. first 6 commits. Link: https://lore.kernel.org/netdev/20211208141722.13646-1-shayd@nvidia.com/ (local) 2) Memory optimization of netdev's channels data. For more information please see tag log below. Please pull and let me know if there is any problem. Thanks, Saeed. The following changes since commit f4f2970dfd87e5132c436e6125148914596a9863: Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue (2021-12-21 17:20:31 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git tags/mlx5-updates-2021-12-21 for you to fetch changes up to 1f08917ab929a6939cb0c95d47f928db43f6d3c9: net/mlx5e: Take packet_merge params directly from the RX res struct (2021-12-21 19:08:58 -0800) ---------------------------------------------------------------- mlx5-updates-2021-12-21 1) From Shay Drory: Devlink user knobs to control device's EQ size This series provides knobs which will enable users to minimize memory consumption of mlx5 Functions (PF/VF/SF). mlx5 exposes two new generic devlink params for EQ size configuration and uses devlink generic param max_macs. LINK: https://lore.kernel.org/netdev/20211208141722.13646-1-shayd@nvidia.com/ (local) 2) From Tariq and Lama, allocate software channel objects and statistics of a mlx5 netdevice private data dynamically upon first demand to save on memory. ---------------------------------------------------------------- Lama Kayal (1): net/mlx5e: Allocate per-channel stats dynamically at first usage Shaokun Zhang (1): net/mlx5: Remove the repeated declaration Shay Drory (6): devlink: Add new "io_eq_size" generic device param net/mlx5: Let user configure io_eq_size param devlink: Add new "event_eq_size" generic device param net/mlx5: Let user configure event_eq_size param devlink: Clarifies max_macs generic devlink param net/mlx5: Let user configure max_macs generic param Tariq Toukan (6): net/mlx5e: Use bitmap field for profile features net/mlx5e: Add profile indications for PTP and QOS HTB features net/mlx5e: Save memory by using dynamic allocation in netdev priv net/mlx5e: Allow profile-specific limitation on max num of channels net/mlx5e: Use dynamic per-channel allocations in stats net/mlx5e: Take packet_merge params directly from the RX res struct .../networking/devlink/devlink-params.rst | 12 +- Documentation/networking/devlink/mlx5.rst | 10 ++ drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 88 +++++++++++ drivers/net/ethernet/mellanox/mlx5/core/en.h | 26 ++-- .../ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c | 6 +- .../net/ethernet/mellanox/mlx5/core/en/rx_res.c | 14 +- .../net/ethernet/mellanox/mlx5/core/en/xsk/setup.c | 2 +- .../ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c | 2 +- .../net/ethernet/mellanox/mlx5/core/en_ethtool.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 165 +++++++++++++++++---- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 17 ++- drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en_stats.c | 16 +- drivers/net/ethernet/mellanox/mlx5/core/eq.c | 34 ++++- drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 - .../net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c | 3 +- .../ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c | 1 - drivers/net/ethernet/mellanox/mlx5/core/main.c | 21 +++ include/net/devlink.h | 8 + net/core/devlink.c | 10 ++ 22 files changed, 365 insertions(+), 81 deletions(-)