From: Ivan Malov Date: Mon, 8 Mar 2021 06:51:04 +0000 (+0300) Subject: net: fix comment in IPv6 header X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=24f8b2d896328785038400046773a1e412360627;p=dpdk.git net: fix comment in IPv6 header The comment got it wrong. The payload length field does not include the fixed IPv6 header size. Fixes: 7eca7f7fd09d ("net: add missing endianness annotations") Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko Reviewed-by: Ferruh Yigit --- diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h index 212ff2c4fd..b59c4d67a3 100644 --- a/lib/librte_net/rte_ip.h +++ b/lib/librte_net/rte_ip.h @@ -384,7 +384,7 @@ rte_ipv4_udptcp_cksum(const struct rte_ipv4_hdr *ipv4_hdr, const void *l4_hdr) */ struct rte_ipv6_hdr { rte_be32_t vtc_flow; /**< IP version, traffic class & flow label. */ - rte_be16_t payload_len; /**< IP packet length - includes header size */ + rte_be16_t payload_len; /**< IP payload size, including ext. headers */ uint8_t proto; /**< Protocol, next header. */ uint8_t hop_limits; /**< Hop limits. */ uint8_t src_addr[16]; /**< IP address of source host. */