Skip to content

Commit

Permalink
net/mlx5: support new RSS symmetric hash function
Browse files Browse the repository at this point in the history
This patch supports the new RSS symmetric hash function:
RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ_SORT

The new hash function makes symmetric hash result by swapping
the source and destination IP and L4 port automatically.

Signed-off-by: Xueming Li <[email protected]>
Acked-by: Ori Kam <[email protected]>
  • Loading branch information
steevenlee authored and raslandarawsheh committed Oct 31, 2023
1 parent 8ce638e commit 76f3d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/mlx5/mlx5_flow.h
Original file line number Diff line number Diff line change
Expand Up @@ -1516,8 +1516,8 @@ struct rte_flow_template_table {
#define MLX5_RSS_HASH_NONE 0ULL

#define MLX5_RSS_IS_SYMM(func) \
((func) == RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ)

(((func) == RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ) || \
((func) == RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ_SORT))

/* extract next protocol type from Ethernet & VLAN headers */
#define MLX5_ETHER_TYPE_FROM_HEADER(_s, _m, _itm, _prt) do { \
Expand Down

0 comments on commit 76f3d99

Please sign in to comment.