[PATCH v2 2/2] net/mlx5: support new RSS symmetric hash function
Xueming Li
xuemingl at nvidia.com
Sun Aug 27 10:17:45 CEST 2023
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 <xuemingl at nvidia.com>
---
drivers/net/mlx5/mlx5_flow.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_flow.h b/drivers/net/mlx5/mlx5_flow.h
index 3a97975d69..e162baa7da 100644
--- a/drivers/net/mlx5/mlx5_flow.h
+++ b/drivers/net/mlx5/mlx5_flow.h
@@ -1456,8 +1456,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 { \
--
2.25.1
More information about the dev
mailing list