path: root/include/net/tcp.h
diff options
authorDavid S. Miller <davem@davemloft.net>2018-07-08 13:06:55 +0900
committerDavid S. Miller <davem@davemloft.net>2018-07-08 13:06:55 +0900
commit7f93d1295131c9a8b6ff5eec13eef094f0d42921 (patch)
treeda6197820c36c00397f1043bceb3175e5476bfa4 /include/net/tcp.h
parentf6f2a4a2eb92bc73671204198bb2f8ab53ff59fb (diff)
parentd8d7218ad842e18fc6976b87c08ed749e8d56313 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Alexei Starovoitov says: ==================== pull-request: bpf 2018-07-07 The following pull-request contains BPF updates for your *net* tree. Plenty of fixes for different components: 1) A set of critical fixes for sockmap and sockhash, from John Fastabend. 2) fixes for several race conditions in af_xdp, from Magnus Karlsson. 3) hash map refcnt fix, from Mauricio Vasquez. 4) samples/bpf fixes, from Taeung Song. 5) ifup+mtu check for xdp_redirect, from Toshiaki Makita. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 800582b5dd54..af3ec72d5d41 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -828,6 +828,10 @@ struct tcp_skb_cb {
#define TCP_SKB_CB(__skb) ((struct tcp_skb_cb *)&((__skb)->cb[0]))
+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);
/* This is the variant of inet6_iif() that must be used by TCP,