patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Jiawei Wang <>
	Mohammad Abdul Awal <>,
	Adrien Mazarguil <>,
	Nelio Laranjeiro <>
Subject: [dpdk-stable] [PATCH] app/testpmd: fix the miss configuration for NVGRE encap
Date: Tue, 16 Mar 2021 05:24:17 +0200
Message-ID: <> (raw)

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

This patch updates these two configuraitons while parser the nvgre

Fixes: dcd962fc6b ("app/testpmd: add NVGRE encap/decap")

Signed-off-by: Jiawei Wang <>
Acked-by: Ori Kam <>
 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,

             reply	other threads:[~2021-03-16  3:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16  3:24 Jiawei Wang [this message]
2021-03-16  4:18 Jiawei Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror 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/ \
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone