Skip to content

net/mlx5e: simplify and optimize napi poll flow

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. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net/mlx5e: Reduce branches in napi polldrivers/net/ethernet/mellanox/mlx5/core/en_txrx.c+15 -150 repliesApplied
2/2net/mlx5e: Let kTLS RX get async ICOSQ param in napi polldrivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_txrx.h drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c+10 -120 repliesApplied

Reviews trailers per patch

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

PatchDragos Tatulea
1/2R-b
2/2R-b

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

Read the v1 thread

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

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

Signature · 1 line
2.44.0