patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] app/testpmd: fix the miss configuration for NVGRE encap
@ 2021-03-16  4:18 Jiawei Wang
  2021-03-23 13:57 ` [dpdk-stable] [dpdk-dev] " Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Jiawei Wang @ 2021-03-16  4:18 UTC (permalink / raw)
  To: orika, viacheslavo, xiaoyun.li
  Cc: dev, stable, Mohammad Abdul Awal, Adrien Mazarguil, Nelio Laranjeiro

For NVGRE protocol, the default value of c_k_s_rsvd0_ver
must be 0x2000, and protocol type must be 0x6558 in the NVGRE
header.

This patch updates these two configuraitons while parser the nvgre
encap.

Fixes: dcd962fc6b ("app/testpmd: add NVGRE encap/decap")
Cc: stable@dpdk.org

Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
---
 app/test-pmd/cmdline_flow.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 49d9f9c..2c40c69 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -5439,6 +5439,8 @@ static int comp_set_modify_field_id(struct context *, const struct token *,
 		       .src_addr = nvgre_encap_conf.ipv4_src,
 		       .dst_addr = nvgre_encap_conf.ipv4_dst,
 		},
+		.item_nvgre.c_k_s_rsvd0_ver = RTE_BE16(0x2000),
+		.item_nvgre.protocol = RTE_BE16(RTE_ETHER_TYPE_TEB),
 		.item_nvgre.flow_id = 0,
 	};
 	memcpy(action_nvgre_encap_data->item_eth.dst.addr_bytes,
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [PATCH] app/testpmd: fix the miss configuration for NVGRE encap
  2021-03-16  4:18 [dpdk-stable] [PATCH] app/testpmd: fix the miss configuration for NVGRE encap Jiawei Wang
@ 2021-03-23 13:57 ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2021-03-23 13:57 UTC (permalink / raw)
  To: Jiawei Wang, orika, viacheslavo, xiaoyun.li
  Cc: dev, stable, Mohammad Abdul Awal, Adrien Mazarguil, Nelio Laranjeiro

On 3/16/2021 4:18 AM, Jiawei Wang wrote:
> For NVGRE protocol, the default value of c_k_s_rsvd0_ver
> must be 0x2000, and protocol type must be 0x6558 in the NVGRE
> header.
> 
> This patch updates these two configuraitons while parser the nvgre
> encap.
> 
> Fixes: dcd962fc6b ("app/testpmd: add NVGRE encap/decap")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
> Acked-by: Ori Kam <orika@nvidia.com>

Applied to dpdk-next-net/main, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dpdk-stable] [PATCH] app/testpmd: fix the miss configuration for NVGRE encap
@ 2021-03-16  3:24 Jiawei Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Jiawei Wang @ 2021-03-16  3:24 UTC (permalink / raw)
  To: orika, viacheslavo, xiaoyun.li
  Cc: stable, Mohammad Abdul Awal, Adrien Mazarguil, Nelio Laranjeiro

For NVGRE protocol, the default value of c_k_s_rsvd0_ver
must be 0x2000, and protocol type must be 0x6558 in the NVGRE
header.

This patch updates these two configuraitons while parser the nvgre
encap.

Fixes: dcd962fc6b ("app/testpmd: add NVGRE encap/decap")
Cc: stable@dpdk.org

Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
---
 app/test-pmd/cmdline_flow.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 49d9f9c..2c40c69 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -5439,6 +5439,8 @@ static int comp_set_modify_field_id(struct context *, const struct token *,
 		       .src_addr = nvgre_encap_conf.ipv4_src,
 		       .dst_addr = nvgre_encap_conf.ipv4_dst,
 		},
+		.item_nvgre.c_k_s_rsvd0_ver = RTE_BE16(0x2000),
+		.item_nvgre.protocol = RTE_BE16(RTE_ETHER_TYPE_TEB),
 		.item_nvgre.flow_id = 0,
 	};
 	memcpy(action_nvgre_encap_data->item_eth.dst.addr_bytes,
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-23 13:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16  4:18 [dpdk-stable] [PATCH] app/testpmd: fix the miss configuration for NVGRE encap Jiawei Wang
2021-03-23 13:57 ` [dpdk-stable] [dpdk-dev] " Ferruh Yigit
  -- strict thread matches above, loose matches on Subject: below --
2021-03-16  3:24 [dpdk-stable] " Jiawei Wang

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ https://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git