Skip to content

Commit c20a71a

Browse files
jrfastabborkmann
authored andcommitted
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent 2fd206d commit c20a71a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kernel/bpf/sockmap.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@ static inline struct smap_psock *smap_psock_sk(const struct sock *sk)
9696
return rcu_dereference_sk_user_data(sk);
9797
}
9898

99-
/* compute the linear packet data range [data, data_end) for skb when
100-
* sk_skb type programs are in use.
101-
*/
102-
static inline void bpf_compute_data_end_sk_skb(struct sk_buff *skb)
103-
{
104-
TCP_SKB_CB(skb)->bpf.data_end = skb->data + skb_headlen(skb);
105-
}
106-
10799
enum __sk_action {
108100
__SK_DROP = 0,
109101
__SK_PASS,

0 commit comments

Comments
 (0)