git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d56ec3d
)
net: constify pointer to IPv6 header
author
Stephen Hemminger
<stephen@networkplumber.org>
Fri, 15 Nov 2019 00:02:59 +0000
(16:02 -0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 20 Nov 2019 16:36:06 +0000
(17:36 +0100)
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>
lib/librte_net/rte_ip.h
patch
|
blob
|
history
diff --git
a/lib/librte_net/rte_ip.h
b/lib/librte_net/rte_ip.h
index
e3300fd
..
1ceb7b7
100644
(file)
--- a/
lib/librte_net/rte_ip.h
+++ b/
lib/librte_net/rte_ip.h
@@
-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;