From 75a0b1a8c14999ce893bc4a8df34e818e95b0b9f Mon Sep 17 00:00:00 2001 From: Jiawei Wang Date: Tue, 16 Mar 2021 06:18:27 +0200 Subject: [PATCH] app/testpmd: fix NVGRE encap configuration [ upstream commit 9b0da816bdec98c0d6c5d17ccdd337bdbafc3f75 ] 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 configurations while parsing the nvgre encap. Fixes: dcd962fc6b4e ("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 da3533c557..894546f2c0 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -4250,6 +4250,8 @@ parse_vc_action_nvgre_encap(struct context *ctx, const struct token *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,