app/testpmd: fix NVGRE encap configuration
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: 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>
This commit is contained in:
parent
63e05f19b8
commit
9b0da816bd
@ -5439,6 +5439,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,
|
||||
|
Loading…
Reference in New Issue
Block a user