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

From: Tariq Toukan

Date: Sun Nov 30 2025 - 05:14:09 EST


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/1762939749-1165658-1-git-send-email-tariqt@xxxxxxxxxx/

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
--
2.31.1