net: constify pointer to ipv6 header
PATCH 1/1 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 <[email protected]>
--- lib/librte_net/rte_ip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_net/rte_ip.h +1 -1
@@ -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;
Signature · 1 line
2.20.1
Quoted 4 lines · Stephen Hemminger
The function
rte_ipv6_get_next_extdoes not modify the header that is passed in.Signed-off-by Stephen Hemminger <[email protected]>
Reviewed-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net/master, thanks.