net/ice/base: fix NVGRE header structure

Correct NVGRE header structure and its field offsets.

Fixes: 04b8ec1ea8 ("net/ice/base: add protocol structures and defines")
Cc: stable@dpdk.org

Signed-off-by: Dan Nowlin <dan.nowlin@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Leyi Rong <leyi.rong@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
This commit is contained in:
Leyi Rong 2019-06-19 23:18:39 +08:00 committed by Ferruh Yigit
parent dfbb0b98d4
commit 8d0fa8c7f5
2 changed files with 4 additions and 3 deletions

View File

@ -194,8 +194,9 @@ struct ice_udp_tnl_hdr {
};
struct ice_nvgre {
u16 tni;
u16 flow_id;
u16 flags;
u16 protocol;
u32 tni_flow;
};
union ice_prot_hdr {

View File

@ -4390,7 +4390,7 @@ static const struct ice_prot_ext_tbl_entry ice_prot_ext[] = {
{ ICE_VXLAN, { 8, 10, 12, 14 } },
{ ICE_GENEVE, { 8, 10, 12, 14 } },
{ ICE_VXLAN_GPE, { 0, 2, 4 } },
{ ICE_NVGRE, { 0, 2 } },
{ ICE_NVGRE, { 0, 2, 4, 6 } },
{ ICE_PROTOCOL_LAST, { 0 } }
};