Commit f03fb3f4 authored by Jan Seiffert's avatar Jan Seiffert Committed by David S. Miller

bpf jit: Make the filter.c::__load_pointer helper non-static for the jits

The function is renamed to make it a little more clear what it does.
It is not added to any .h because it is not for general consumption, only for
bpf internal use (and so by the jits).
Signed-of-by: default avatarJan Seiffert <kaffeemonster@googlemail.com>
Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5d6bd861
...@@ -39,8 +39,11 @@ ...@@ -39,8 +39,11 @@
#include <linux/reciprocal_div.h> #include <linux/reciprocal_div.h>
#include <linux/ratelimit.h> #include <linux/ratelimit.h>
/* No hurry in this branch */ /* No hurry in this branch
static void *__load_pointer(const struct sk_buff *skb, int k, unsigned int size) *
* Exported for the bpf jit load helper.
*/
void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size)
{ {
u8 *ptr = NULL; u8 *ptr = NULL;
...@@ -59,7 +62,7 @@ static inline void *load_pointer(const struct sk_buff *skb, int k, ...@@ -59,7 +62,7 @@ static inline void *load_pointer(const struct sk_buff *skb, int k,
{ {
if (k >= 0) if (k >= 0)
return skb_header_pointer(skb, k, size, buffer); return skb_header_pointer(skb, k, size, buffer);
return __load_pointer(skb, k, size); return bpf_internal_load_pointer_neg_helper(skb, k, size);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment