net: constify pointer to IPv6 header

The function rte_ipv6_get_next_ext does not modify
the header that is passed in.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Stephen Hemminger 2019-11-14 16:02:59 -08:00 committed by Ferruh Yigit
parent d56ec3dcad
commit 6c373e935a

View File

@ -463,7 +463,7 @@ rte_ipv6_udptcp_cksum(const struct rte_ipv6_hdr *ipv6_hdr, const void *l4_hdr)
*/
__rte_experimental
static inline int
rte_ipv6_get_next_ext(uint8_t *p, int proto, size_t *ext_len)
rte_ipv6_get_next_ext(const uint8_t *p, int proto, size_t *ext_len)
{
int next_proto;