net: fix definition of IPv6 traffic class mask
IPv6 header TC field is 8 bits, not 4.
Fixes: 9b20c6e902
("net: add IPv6 header fields macros")
Cc: stable@dpdk.org
Signed-off-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
parent
f0c2dc8201
commit
854c1333b5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user