[PATCH 25.11] net/mlx5: add RSS TIR registration API
Kevin Traynor
ktraynor at redhat.com
Tue Apr 21 12:05:56 CEST 2026
On 4/15/26 3:30 PM, Shani Peretz wrote:
> [ upstream commit 9ec0c6bda04a776f5bb0bea7791d68310cdb8590 ]
>
> mlx5 PMD is a bifurcated driver, which uses rdma-core API to
> communicate with HW instead of UIO or VFIO directly.
>
> It is possible for external libraries built on rdma-core to steer
> traffic to DPDK-managed Rx queues using mlx5dv flow API. This
> requires access to TIR object handles.
>
> TIR (Transport Interface Receive) is a hardware object that defines
> how incoming packets are distributed across Rx queues. It encodes
> the complete RSS configuration including the hash function type,
> hash key, set of destination queues, and which packet fields
> (IP addresses, ports, etc.) participate in the hash calculation.
> When a flow rule uses a TIR as its destination, the hardware applies
> this RSS configuration to matching packets.
>
> Add the following functions to mlx5 PMD private API:
>
> - rte_pmd_mlx5_rss_tir_register(): Create a TIR DevX object based on
> the provided RSS configuration. The returned TIR handle can be used
> as a destination action in mlx5dv flow steering APIs from rdma-core.
>
> - rte_pmd_mlx5_rss_tir_unregister(): Release the TIR object when no
> longer needed.
>
> Signed-off-by: Shani Peretz <shperetz at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
> ---
> drivers/net/mlx5/mlx5_flow_hw.c | 82 +++++++++++++++++++++++++++++++++
> drivers/net/mlx5/rte_pmd_mlx5.h | 54 ++++++++++++++++++++++
> 2 files changed, 136 insertions(+)
Thanks Shani. This is pushed to 25.11 branch.
More information about the stable
mailing list