* [PATCH] net/mlx5: support ESP in non-template RSS expansion
@ 2025-02-17 7:13 Gregory Etelson
0 siblings, 0 replies; only message in thread
From: Gregory Etelson @ 2025-02-17 7:13 UTC (permalink / raw)
To: dev; +Cc: getelson, , rasland
Add support for the ESP protocol in non-template RSS expansion.
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
---
| 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--git a/drivers/net/mlx5/mlx5_nta_rss.c b/drivers/net/mlx5/mlx5_nta_rss.c
index 602df301ac..8f00510445 100644
--- a/drivers/net/mlx5/mlx5_nta_rss.c
+++ b/drivers/net/mlx5/mlx5_nta_rss.c
@@ -123,7 +123,7 @@ mlx5_nta_rss_expand_l3_l4(struct mlx5_nta_rss_ctx *rss_ctx,
uint64_t rss_types, uint64_t rss_l3_types)
{
int ret;
- int ptype_l3, ptype_l4_udp, ptype_l4_tcp, ptype_l4_esp = 0;
+ int ptype_l3, ptype_l4_esp, ptype_l4_udp, ptype_l4_tcp;
uint64_t rss = rss_types &
~(rss_l3_types == MLX5_IPV4_LAYER_TYPES ?
MLX5_IPV6_LAYER_TYPES : MLX5_IPV4_LAYER_TYPES);
@@ -132,12 +132,13 @@ mlx5_nta_rss_expand_l3_l4(struct mlx5_nta_rss_ctx *rss_ctx,
if (rss_ctx->rss_conf->level < 2) {
ptype_l3 = rss_l3_types == MLX5_IPV4_LAYER_TYPES ?
RTE_PTYPE_L3_IPV4 : RTE_PTYPE_L3_IPV6;
- ptype_l4_esp = RTE_PTYPE_TUNNEL_ESP;
+ ptype_l4_esp = RTE_PTYPE_L4_ESP;
ptype_l4_udp = RTE_PTYPE_L4_UDP;
ptype_l4_tcp = RTE_PTYPE_L4_TCP;
} else {
ptype_l3 = rss_l3_types == MLX5_IPV4_LAYER_TYPES ?
RTE_PTYPE_INNER_L3_IPV4 : RTE_PTYPE_INNER_L3_IPV6;
+ ptype_l4_esp = RTE_PTYPE_INNER_L4_ESP;
ptype_l4_udp = RTE_PTYPE_INNER_L4_UDP;
ptype_l4_tcp = RTE_PTYPE_INNER_L4_TCP;
}
@@ -469,7 +470,7 @@ flow_nta_create_single(struct rte_eth_dev *dev,
*/
#define MLX5_PTYPE_RSS_OUTER_MASK (RTE_PTYPE_L3_IPV4 | RTE_PTYPE_L3_IPV6 | \
RTE_PTYPE_L4_UDP | RTE_PTYPE_L4_TCP | \
- RTE_PTYPE_TUNNEL_ESP)
+ RTE_PTYPE_L4_ESP)
#define MLX5_PTYPE_RSS_INNER_MASK (RTE_PTYPE_INNER_L3_IPV4 | RTE_PTYPE_INNER_L3_IPV6 | \
RTE_PTYPE_INNER_L4_TCP | RTE_PTYPE_INNER_L4_UDP)
@@ -630,4 +631,3 @@ flow_nta_handle_rss(struct rte_eth_dev *dev,
}
#endif
-
--
2.45.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-17 7:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-17 7:13 [PATCH] net/mlx5: support ESP in non-template RSS expansion Gregory Etelson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).