[PATCH net-next 0/2] net/mlx5e: simplify and optimize napi poll flow

From: Tariq Toukan

Date: Thu May 14 2026 - 07:11:45 EST


Hi,

This series simplifies the mlx5e napi poll flow and reduces branching in
hot paths by leveraging existing dependencies between channel features.

Patch 1 avoids passing the full channel object to kTLS RX code paths
when only the async ICOSQ is needed, and slightly optimizes the common
flow in the pending resync handling logic.

Patch 2 further reduces branches in napi poll by relying on established
feature dependencies between XDP, async ICOSQ, XSK, and kTLS RX state.

Regards,
Tariq

Tariq Toukan (2):
net/mlx5e: Reduce branches in napi poll
net/mlx5e: Let kTLS RX get async ICOSQ param in napi poll

.../mellanox/mlx5/core/en_accel/ktls_rx.c | 5 +--
.../mellanox/mlx5/core/en_accel/ktls_txrx.h | 12 +++----
.../net/ethernet/mellanox/mlx5/core/en_txrx.c | 35 ++++++++++---------
3 files changed, 25 insertions(+), 27 deletions(-)


base-commit: 18dc8e6d15d7a30888beec46a1e01ca0f98508fa
--
2.44.0