Skip to content

net/mlx5e: Improve channel creation time via fast-path MKEY initialization

Tariq Toukan linux-rdma lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net/mlx5e: Move RX MPWQE slowpath fields into a separate structdrivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en_main.c+10 -61 reply
2/3net/mlx5e: RX, Pre-calculate pad value in MPWQEdrivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en_main.c drivers/net/ethernet/mellanox/mlx5/core/en_rx.c+17 -61 reply
3/3net/mlx5e: Speed up channel creation by initializing MKEY entries via UMR WQEdrivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h drivers/net/ethernet/mellanox/mlx5/core/en_main.c +1 more+185 -601 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDragos TatuleaSimon HormanJoe Damato
SeriesR-b
1/3R-b R-b
2/3R-b R-b
3/3R-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 v1 thread

Cover letter [PATCH net-next 0/3] net/mlx5e: Improve channel creation time via fast-path MKEY initialization

Hi,

This series improves channel creation time by moving per-channel MKEY initialization from a slow-path FW command to a fast-path UMR WQE.

The benefit becomes more significant with larger MKEYs and a higher number of channels.

On my setup with the maximum configuration (248 channels, MTU 9000, RX/TX ring size 8K), the "interface up" operation is 2.081 seconds faster:

Before: 5.618 seconds
After:  3.537 seconds

This corresponds to ~8.4 msec saved per channel.

Regards,
Tariq

Tariq Toukan (3):
net/mlx5e: Move RX MPWQE slowpath fields into a separate struct net/mlx5e: RX, Pre-calculate pad value in MPWQE
net/mlx5e: Speed up channel creation by initializing MKEY entries via
UMR WQE

 drivers/net/ethernet/mellanox/mlx5/core/en.h  |  11 +-
 .../net/ethernet/mellanox/mlx5/core/en/txrx.h |   1 +
 .../net/ethernet/mellanox/mlx5/core/en_main.c | 263 +++++++++++++-----
 .../net/ethernet/mellanox/mlx5/core/en_rx.c   |   9 +-
 4 files changed, 212 insertions(+), 72 deletions(-)

base-commit: a7fb05cbb8f989fa5a81818be9680464cff9d717

Signature · 1 line
2.44.0