public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [net-next PATCH 1/2] bpf: sockmap remove unused function
@ 2018-01-04  1:57 John Fastabend
  2018-01-04  1:57 ` [net-next PATCH 2/2] bpf: only build sockmap with CONFIG_INET John Fastabend
  2018-01-04 22:27 ` [net-next PATCH 1/2] bpf: sockmap remove unused function Daniel Borkmann
  0 siblings, 2 replies; 3+ messages in thread
From: John Fastabend @ 2018-01-04  1:57 UTC (permalink / raw)
  To: borkmann, alexei.starovoitov; +Cc: netdev

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>
---
 kernel/bpf/sockmap.c |    8 --------
 1 file changed, 8 deletions(-)

diff --git a/kernel/bpf/sockmap.c b/kernel/bpf/sockmap.c
index 5ee2e41..3f662ee 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,

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-04 22:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-04  1:57 [net-next PATCH 1/2] bpf: sockmap remove unused function John Fastabend
2018-01-04  1:57 ` [net-next PATCH 2/2] bpf: only build sockmap with CONFIG_INET John Fastabend
2018-01-04 22:27 ` [net-next PATCH 1/2] bpf: sockmap remove unused function Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox