summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2018-01-03 17:57:39 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2018-01-04 19:01:14 +0100
commitc20a71a7a3841a6198721a0b4276f3298b38bbcf (patch)
tree37027c0ab62640ed0dda7b9d46c54f14e8f8621c
parent2fd206d4250784b498330d7e1f463672c06abc5a (diff)
downloadlinux-c20a71a7a3841a6198721a0b4276f3298b38bbcf.tar.bz2
bpf: sockmap remove unused function
This was added for some work that was eventually factored out but the helper call was missed. Remove it now and add it back later if needed. Signed-off-by: John Fastabend <john.fastabend@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
-rw-r--r--kernel/bpf/sockmap.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/bpf/sockmap.c b/kernel/bpf/sockmap.c
index 5ee2e41893d9..3f662ee23a34 100644
--- a/kernel/bpf/sockmap.c
+++ b/kernel/bpf/sockmap.c
@@ -96,14 +96,6 @@ static inline struct smap_psock *smap_psock_sk(const struct sock *sk)
return rcu_dereference_sk_user_data(sk);
}
-/* compute the linear packet data range [data, data_end) for skb when
- * sk_skb type programs are in use.
- */
-static inline void bpf_compute_data_end_sk_skb(struct sk_buff *skb)
-{
- TCP_SKB_CB(skb)->bpf.data_end = skb->data + skb_headlen(skb);
-}
-
enum __sk_action {
__SK_DROP = 0,
__SK_PASS,