Skip to content

net/mlx5: Memory optimizations

Shay Drory lkml netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 2 repliesIn review
  2. v37 patches 5 repliesSuperseded
  3. v26 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches6 repliesSuperseded

Changes in v4 from the cover letter

- align devlink_param doc of EQ size params to u32. v2->v3:
- change type of EQ size params to u32 per Jiri suggestion.
- separate ifc changes to new patch

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7net/mlx5: Introduce log_max_current_uc_list_wr_supported bitinclude/linux/mlx5/mlx5_ifc.h+1 -10 replies
2/7devlink: Add new "io_eq_size" generic device paramDocumentation/networking/devlink/devlink-params.rst include/net/devlink.h net/core/devlink.c+12 -01 reply
3/7net/mlx5: Let user configure io_eq_size paramDocumentation/networking/devlink/mlx5.rst drivers/net/ethernet/mellanox/mlx5/core/devlink.c drivers/net/ethernet/mellanox/mlx5/core/eq.c+35 -10 replies
4/7devlink: Add new "event_eq_size" generic device paramDocumentation/networking/devlink/devlink-params.rst include/net/devlink.h net/core/devlink.c+12 -01 reply
5/7net/mlx5: Let user configure event_eq_size paramDocumentation/networking/devlink/mlx5.rst drivers/net/ethernet/mellanox/mlx5/core/devlink.c drivers/net/ethernet/mellanox/mlx5/core/eq.c+25 -10 replies
6/7devlink: Clarifies max_macs generic devlink paramDocumentation/networking/devlink/devlink-params.rst+4 -20 replies
7/7net/mlx5: Let user configure max_macs generic paramDocumentation/networking/devlink/mlx5.rst drivers/net/ethernet/mellanox/mlx5/core/devlink.c drivers/net/ethernet/mellanox/mlx5/core/main.c+91 -00 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchMoshe ShemeshJiri PirkoParav Pandit
1/7R-b
2/7R-b R-b
3/7R-b
4/7R-b R-b
5/7R-b
6/7R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH net-next v4 0/7] net/mlx5: Memory optimizations

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.

Patches summary:
- Patch-1 Introduce log_max_current_uc_list_wr_supported bit
- Patches-2-3 Provides I/O EQ size param which enables to save up to 128KB.
- Patches-4-5 Provides event EQ size param which enables to save up to 512KB.
- Patch-6 Clarify max_macs param.
- Patch-7 Provides max_macs param which enables to save up to 70KB

In total, this series can save up to 700KB per Function.

---
changelog:
v3->v4:
- align devlink_param doc of EQ size params to u32. v2->v3:
- change type of EQ size params to u32 per Jiri suggestion.
- separate ifc changes to new patch
v1->v2:
- convert io_eq_size and event_eq_size from devlink_resources to generic devlink_params

Shay Drory (7):
net/mlx5: Introduce log_max_current_uc_list_wr_supported bit
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

 .../networking/devlink/devlink-params.rst     | 12 ++-
 Documentation/networking/devlink/mlx5.rst     | 10 +++
 .../net/ethernet/mellanox/mlx5/core/devlink.c | 88 +++++++++++++++++++
 drivers/net/ethernet/mellanox/mlx5/core/eq.c  | 34 ++++++-
 .../net/ethernet/mellanox/mlx5/core/main.c    | 21 +++++
 include/linux/mlx5/mlx5_ifc.h                 |  2 +-
 include/net/devlink.h                         |  8 ++
 net/core/devlink.c                            | 10 +++
 8 files changed, 180 insertions(+), 5 deletions(-)
Signature · 1 line
2.21.3