net/mlx5: support RSS expansion for NVGRE
PATCH 1/1 net/mlx5: support RSS expansion for NVGRE
Currently RSS expansion only support GRE and GRE KEY.
This patch add RSS expansion for NVGRE item so PMD can expand flow item correctly.
--- drivers/net/mlx5/mlx5_flow.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow.c +8 -1
@@ -407,6 +407,7 @@ enum mlx5_expansion {MLX5_EXPANSION_VXLAN ,MLX5_EXPANSION_VXLAN_GPE ,MLX5_EXPANSION_GRE , +MLX5_EXPANSION_NVGRE ,MLX5_EXPANSION_GRE_KEY ,MLX5_EXPANSION_MPLS , MLX5_EXPANSION_ETH,
@@ -465,6 +466,7 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { (MLX5_EXPANSION_OUTER_IPV4_UDP ,MLX5_EXPANSION_OUTER_IPV4_TCP ,MLX5_EXPANSION_GRE , +MLX5_EXPANSION_NVGRE ,MLX5_EXPANSION_IPV4 , MLX5_EXPANSION_IPV6), .type = RTE_FLOW_ITEM_TYPE_IPV4,
@@ -487,7 +489,8 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { MLX5_EXPANSION_OUTER_IPV6_TCP,MLX5_EXPANSION_IPV4 ,MLX5_EXPANSION_IPV6 , - MLX5_EXPANSION_GRE), +MLX5_EXPANSION_GRE , + MLX5_EXPANSION_NVGRE), .type = RTE_FLOW_ITEM_TYPE_IPV6, .rss_types = ETH_RSS_IPV6 | ETH_RSS_FRAG_IPV6 | ETH_RSS_NONFRAG_IPV6_OTHER,
@@ -526,6 +529,10 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { .type = RTE_FLOW_ITEM_TYPE_GRE_KEY, .optional = 1, }, + [MLX5_EXPANSION_NVGRE] = { + .next = MLX5_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_ETH), + .type = RTE_FLOW_ITEM_TYPE_NVGRE, + }, [MLX5_EXPANSION_MPLS] = { .next =MLX5_FLOW_EXPAND_RSS_NEXT (MLX5_EXPANSION_IPV4 , MLX5_EXPANSION_IPV6),
Signature · 1 line
2.18.1
Quoted 11 lines
-----Original Message-----
From: Jiawei(Jonny) Wang <[email protected]>
Sent: Wednesday, May 12, 2021 9:43
To: Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>; Ori Kam <[email protected]>; Jack Min <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>
Cc: [email protected]; Raslan Darawsheh <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: support RSS expansion for NVGRE
Quoted 3 lines
Currently RSS expansion only support GRE and GRE KEY.
This patch add RSS expansion for NVGRE item so PMD can expand flow item correctly.
Please, fix typos:
support -> supportS
add -> addS
Also, the "fix" should be in headline.
With best regards,
Slava
Quoted 58 lines
Fixes f4b901a46aec ("net/mlx5: add flow GRE item")Signed-off-by Jiawei Wang <[email protected]>Acked-by Xiaoyu Min <[email protected]>--- drivers/net/mlx5/mlx5_flow.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)drivers/net/mlx5/mlx5_flow.c +2
-0@@ -407,6 +407,7 @@ enum mlx5_expansion {MLX5_EXPANSION_VXLAN ,MLX5_EXPANSION_VXLAN_GPE ,MLX5_EXPANSION_GRE , +MLX5_EXPANSION_NVGRE ,MLX5_EXPANSION_GRE_KEY ,MLX5_EXPANSION_MPLS , MLX5_EXPANSION_ETH,@@ -465,6 +466,7 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { (MLX5_EXPANSION_OUTER_IPV4_UDP ,MLX5_EXPANSION_OUTER_IPV4_TCP ,MLX5_EXPANSION_GRE , +MLX5_EXPANSION_NVGRE ,MLX5_EXPANSION_IPV4 , MLX5_EXPANSION_IPV6),drivers/net/mlx5/mlx5_flow.c +2
-1.type = RTE_FLOW_ITEM_TYPE_IPV4,@@ -487,7 +489,8 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = {MLX5_EXPANSION_OUTER_IPV6_TCP ,MLX5_EXPANSION_IPV4 ,MLX5_EXPANSION_IPV6 , - MLX5_EXPANSION_GRE), +MLX5_EXPANSION_GRE , + MLX5_EXPANSION_NVGRE), .type =RTE_FLOW_ITEM_TYPE_IPV6 , .rss_types = ETH_RSS_IPV6 | ETH_RSS_FRAG_IPV6 |drivers/net/mlx5/mlx5_flow.c +4
-0ETH_RSS_NONFRAG_IPV6_OTHER,@@ -526,6 +529,10 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { .type = RTE_FLOW_ITEM_TYPE_GRE_KEY, .optional = 1, }, + [MLX5_EXPANSION_NVGRE] = { + .next = MLX5_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_ETH), + .type = RTE_FLOW_ITEM_TYPE_NVGRE, + }, [MLX5_EXPANSION_MPLS] = {.next =
MLX5_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_IPV4,
MLX5_EXPANSION_IPV6),
--
2.18.1
Quoted 24 lines
-----Original Message-----
From: Slava Ovsiienko <[email protected]>
Sent: Wednesday, May 12, 2021 5:37 PM
To: Jiawei(Jonny) Wang <[email protected]>; Matan Azrad <[email protected]>; Ori Kam <[email protected]>; Jack Min <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>
Cc: [email protected]; Raslan Darawsheh <[email protected]>; [email protected]
Subject: RE: [PATCH] net/mlx5: support RSS expansion for NVGREQuoted 11 lines
-----Original Message-----
From: Jiawei(Jonny) Wang <[email protected]>
Sent: Wednesday, May 12, 2021 9:43
To: Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>; Ori Kam <[email protected]>; Jack Min <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>
Cc: [email protected]; Raslan Darawsheh <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: support RSS expansion for NVGRE
Quoted 9 lines
Quoted 3 lines
Currently RSS expansion only support GRE and GRE KEY. This patch add RSS expansion for NVGRE item so PMD can expand flow item correctly.
Please, fix typos:
support -> supportS
add -> addSAlso, the "fix" should be in headline.
Thank Slava! Will send v2 patch to fix it.
Quoted 6 lines
With best regards,
SlavaQuoted 1 line
[snip]
PATCH v2 1/1 net/mlx5: fix RSS expansion for NVGRE
In reply to Jiawei WangCurrently RSS expansion only supports GRE and GRE KEY.
This patch adds RSS expansion for NVGRE item so PMD can expand flow item correctly.
--- drivers/net/mlx5/mlx5_flow.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow.c +8 -1
@@ -407,6 +407,7 @@ enum mlx5_expansion {MLX5_EXPANSION_VXLAN ,MLX5_EXPANSION_VXLAN_GPE ,MLX5_EXPANSION_GRE , +MLX5_EXPANSION_NVGRE ,MLX5_EXPANSION_GRE_KEY ,MLX5_EXPANSION_MPLS , MLX5_EXPANSION_ETH,
@@ -465,6 +466,7 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { (MLX5_EXPANSION_OUTER_IPV4_UDP ,MLX5_EXPANSION_OUTER_IPV4_TCP ,MLX5_EXPANSION_GRE , +MLX5_EXPANSION_NVGRE ,MLX5_EXPANSION_IPV4 , MLX5_EXPANSION_IPV6), .type = RTE_FLOW_ITEM_TYPE_IPV4,
@@ -487,7 +489,8 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { MLX5_EXPANSION_OUTER_IPV6_TCP,MLX5_EXPANSION_IPV4 ,MLX5_EXPANSION_IPV6 , - MLX5_EXPANSION_GRE), +MLX5_EXPANSION_GRE , + MLX5_EXPANSION_NVGRE), .type = RTE_FLOW_ITEM_TYPE_IPV6, .rss_types = ETH_RSS_IPV6 | ETH_RSS_FRAG_IPV6 | ETH_RSS_NONFRAG_IPV6_OTHER,
@@ -526,6 +529,10 @@ static const struct mlx5_flow_expand_node mlx5_support_expansion[] = { .type = RTE_FLOW_ITEM_TYPE_GRE_KEY, .optional = 1, }, + [MLX5_EXPANSION_NVGRE] = { + .next = MLX5_FLOW_EXPAND_RSS_NEXT(MLX5_EXPANSION_ETH), + .type = RTE_FLOW_ITEM_TYPE_NVGRE, + }, [MLX5_EXPANSION_MPLS] = { .next =MLX5_FLOW_EXPAND_RSS_NEXT (MLX5_EXPANSION_IPV4 , MLX5_EXPANSION_IPV6),
Signature · 1 line
2.18.1
Re: [dpdk-dev] [PATCH v2] net/mlx5: fix RSS expansion for NVGRE
From: Jiawei(Jonny) Wang
Quoted 9 lines
Currently RSS expansion only supports GRE and GRE KEY.
This patch adds RSS expansion for NVGRE item so PMD can expand flow item correctly.Fixes ea81c1b816f7 ("net/mlx5: fix NVGRE matching")Signed-off-by Jiawei Wang <[email protected]>Acked-by Xiaoyu Min <[email protected]>
Thomas Monjalon
AppliedRe: [dpdk-dev] [dpdk-stable] [PATCH v2] net/mlx5: fix RSS expansion for NVGRE
Quoted 10 lines
Quoted 9 lines
Currently RSS expansion only supports GRE and GRE KEY.
This patch adds RSS expansion for NVGRE item so PMD can expand flow item correctly.Fixes ea81c1b816f7 ("net/mlx5: fix NVGRE matching")Signed-off-by Jiawei Wang <[email protected]>Acked-by Xiaoyu Min <[email protected]>Acked-by Matan Azrad <[email protected]>
Applied in next-net-mlx, thanks.