Skip to content

net/mlx5e: Reduce interface downtime on configuration change

Tariq Toukan linux-rdma lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 7 repliesApplied 7/7
  2. v17 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Fix coccinelle false-positive in patch 2.

Patches in v2 All 7 applied

#Subject and filesSizeRepliesApplied
1/7net/mlx5e: Enhance function structures for self loopback prevention applicationdrivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en_common.c drivers/net/ethernet/mellanox/mlx5/core/en_main.c +2 more+19 -91 replyApplied
2/7net/mlx5e: Use TIR API in mlx5e_modify_tirs_lb()drivers/net/ethernet/mellanox/mlx5/core/en/tir.c drivers/net/ethernet/mellanox/mlx5/core/en/tir.h drivers/net/ethernet/mellanox/mlx5/core/en_common.c+43 -301 replyApplied
3/7net/mlx5e: Allow setting self loopback prevention bits on TIR initdrivers/net/ethernet/mellanox/mlx5/core/en/rss.c drivers/net/ethernet/mellanox/mlx5/core/en/rss.h drivers/net/ethernet/mellanox/mlx5/core/en/rx_res.c +1 more+11 -01 replyApplied
4/7net/mlx5: IPoIB, set self loopback prevention in TIR initdrivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c+4 -11 replyApplied
5/7net/mlx5e: Do not re-apply TIR loopback configuration if not necessarydrivers/net/ethernet/mellanox/mlx5/core/en_common.c+3 -01 replyApplied
6/7net/mlx5e: Pass old channels as argument to mlx5e_switch_priv_channelsdrivers/net/ethernet/mellanox/mlx5/core/en_main.c+17 -81 replyApplied
7/7net/mlx5e: Defer channels closure to reduce interface down timedrivers/net/ethernet/mellanox/mlx5/core/en_main.c+5 -11 replyApplied

Reviews trailers per patch

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

PatchCarolina JubranDragos TatuleaSimon Horman
1/7R-b R-b
2/7R-b R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-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 v2 thread

Cover letter [PATCH net-next V2 0/7] net/mlx5e: Reduce interface downtime on configuration change

Hi,

This series significantly reduces the interface downtime while swapping channels during a configuration change, on capable devices.

Here we remove an old requirement on operations ordering that became obsolete on recent capable devices. This helps cutting the downtime by a factor of magnitude, ~80% in our example.

Perf numbers:
Measured the number of dropped packets in a simple ping flood test, during a configuration change operation, that switches the number of channels from 247 to 248.

Before: 71 packets lost
After:  15 packets lost, ~80% saving.

Regards,
Tariq

V2:
- Fix coccinelle false-positive in patch 2.

Tariq Toukan (7):
net/mlx5e: Enhance function structures for self loopback prevention
application
net/mlx5e: Use TIR API in mlx5e_modify_tirs_lb() net/mlx5e: Allow setting self loopback prevention bits on TIR init net/mlx5: IPoIB, set self loopback prevention in TIR init net/mlx5e: Do not re-apply TIR loopback configuration if not necessary net/mlx5e: Pass old channels as argument to mlx5e_switch_priv_channels net/mlx5e: Defer channels closure to reduce interface down time

 drivers/net/ethernet/mellanox/mlx5/core/en.h  |  4 +-
 .../net/ethernet/mellanox/mlx5/core/en/rss.c  |  2 +
 .../net/ethernet/mellanox/mlx5/core/en/rss.h  |  1 +
 .../ethernet/mellanox/mlx5/core/en/rx_res.c   |  7 +++
 .../ethernet/mellanox/mlx5/core/en/rx_res.h   |  1 +
 .../net/ethernet/mellanox/mlx5/core/en/tir.c  | 29 +++++++++--
 .../net/ethernet/mellanox/mlx5/core/en/tir.h  |  3 ++
 .../ethernet/mellanox/mlx5/core/en_common.c   | 52 +++++++++----------
 .../net/ethernet/mellanox/mlx5/core/en_main.c | 31 +++++++----
 .../ethernet/mellanox/mlx5/core/en_selftest.c |  4 +-
 .../ethernet/mellanox/mlx5/core/ipoib/ipoib.c |  7 ++-
 11 files changed, 97 insertions(+), 44 deletions(-)

base-commit: 1bae0fd90077875b6c9c853245189032cbf019f7

Signature · 1 line
2.31.1