Skip to contentSkip to conversation

app/testpmd: fix the miss configuration for NVGRE encap

PATCH Applied Jiawei Wang 2 participants 2 messages Mar 16, 2021 – Mar 23, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app/testpmd: fix the miss configuration for NVGRE encap

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")
---
 app/test-pmd/cmdline_flow.c | 2 ++
 1 file changed, 2 insertions(+)
app/test-pmd/cmdline_flow.c +2 -0
index 49d9f9c..2c40c69 100644
@@ -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,
Signature · 1 line
1.8.3.1
Applied
#1 lore raw
Quoted 4 lines · Jiawei Wang

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.

Quoted 8 lines

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

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

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