From: Morten Brørup Date: Mon, 1 Jul 2019 13:38:05 +0000 (+0200) Subject: net: fix definition of IPv6 traffic class mask X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=854c1333b53f42767b1f5bc731d139d8f675574c;p=dpdk.git net: fix definition of IPv6 traffic class mask IPv6 header TC field is 8 bits, not 4. Fixes: 9b20c6e9028e ("net: add IPv6 header fields macros") Cc: stable@dpdk.org Signed-off-by: Morten Brørup Acked-by: Olivier Matz --- diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h index ae3b7e7302..059ec80c2d 100644 --- a/lib/librte_net/rte_ip.h +++ b/lib/librte_net/rte_ip.h @@ -355,7 +355,7 @@ struct rte_ipv6_hdr { #define RTE_IPV6_HDR_FL_SHIFT 0 #define RTE_IPV6_HDR_TC_SHIFT 20 #define RTE_IPV6_HDR_FL_MASK ((1u << RTE_IPV6_HDR_TC_SHIFT) - 1) -#define RTE_IPV6_HDR_TC_MASK (0xf << RTE_IPV6_HDR_TC_SHIFT) +#define RTE_IPV6_HDR_TC_MASK (0xff << RTE_IPV6_HDR_TC_SHIFT) /** * Process the pseudo-header checksum of an IPv6 header.