diff options
author | John Fastabend | 2018-01-04 02:57:39 +0100 |
---|---|---|
committer | Daniel Borkmann | 2018-01-04 19:01:14 +0100 |
commit | c20a71a7a3841a6198721a0b4276f3298b38bbcf (patch) | |
tree | 37027c0ab62640ed0dda7b9d46c54f14e8f8621c /kernel/bpf | |
parent | Merge branch 'bpf-bpftool-misc-fixes' (diff) | |
download | kernel-qcow2-linux-c20a71a7a3841a6198721a0b4276f3298b38bbcf.tar.gz kernel-qcow2-linux-c20a71a7a3841a6198721a0b4276f3298b38bbcf.tar.xz kernel-qcow2-linux-c20a71a7a3841a6198721a0b4276f3298b38bbcf.zip |
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>
Diffstat (limited to 'kernel/bpf')
-rw-r--r-- | kernel/bpf/sockmap.c | 8 |
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, |