From: Haiyue Wang Date: Mon, 7 Sep 2020 01:56:50 +0000 (+0800) Subject: net: adjust header length parse size X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=976277f9ce09bbf8e763e2e7f3857df64b0ff682;p=dpdk.git net: adjust header length parse size Enlarge the L3 and tunnel header length from 8-bit to 16-bit to handle the bigger headers. And reorder the fields to avoid creating a structure hole. Signed-off-by: Haiyue Wang Acked-by: Stephen Hemminger --- diff --git a/lib/librte_net/rte_net.h b/lib/librte_net/rte_net.h index 94b06d9ee4..434435ffa2 100644 --- a/lib/librte_net/rte_net.h +++ b/lib/librte_net/rte_net.h @@ -20,11 +20,11 @@ extern "C" { */ struct rte_net_hdr_lens { uint8_t l2_len; - uint8_t l3_len; - uint8_t l4_len; - uint8_t tunnel_len; uint8_t inner_l2_len; - uint8_t inner_l3_len; + uint16_t l3_len; + uint16_t inner_l3_len; + uint16_t tunnel_len; + uint8_t l4_len; uint8_t inner_l4_len; };