Skip to content

net/mlx5e: Disable egress xdp-redirect in default

Tariq Toukan bpf linux-rdma lkml netdev 1 version 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

  1. v2 Latest2 patches 0 repliesApplied 2/2

Changes in v2 from the cover letter

- Enhanced commit message.

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net/mlx5e: Update XDP features in switch channelsdrivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c drivers/net/ethernet/mellanox/mlx5/core/en_main.c +1 more+9 -180 repliesApplied
2/2net/mlx5e: Support XDP target xmit with dummy programdrivers/net/ethernet/mellanox/mlx5/core/en_main.c+11 -120 repliesApplied

Reviews trailers per patch

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

PatchDragos TatuleaWilliam Tu
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next V2 0/2] net/mlx5e: Disable egress xdp-redirect in default

Hi,

This small series disables the egress xdp-redirect feature in default. It can still be enabled by loading a dummy XDP program.

Patches were previously submitted as part of [1].

This reduces the default number of SQs in each channel from 4 to 3, and saves resources in device and host memory.

This also improves the latency of channel configuration operations, like interface up (create channels), interface down (destroy channels), and channels reconfiguration (create new set, destroy old one).

Perf numbers:
NIC: Connect-X7.
Setup: 248 channels, default mtu and rx/tx ring sizes.

Interface up + down:

Before: 2.246 secs
After:  1.798 secs (-0.448 sec)

Saves ~1.8 msec per channel.

Regards,
Tariq

[1]
https://lore.kernel.org/all/[email protected]/

V2:
- Enhanced commit message.

Tariq Toukan (2):
net/mlx5e: Update XDP features in switch channels net/mlx5e: Support XDP target xmit with dummy program

 drivers/net/ethernet/mellanox/mlx5/core/en.h  |  2 +-
 .../ethernet/mellanox/mlx5/core/en_ethtool.c  | 10 +-----
 .../net/ethernet/mellanox/mlx5/core/en_main.c | 36 +++++++++----------
 .../net/ethernet/mellanox/mlx5/core/en_rep.c  |  2 +-
 4 files changed, 20 insertions(+), 30 deletions(-)

base-commit: 0177f0f07886e54e12c6f18fa58f63e63ddd3c58

Signature · 1 line
2.31.1