diff options
author | David S. Miller <davem@davemloft.net> | 2019-02-20 03:34:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-20 03:34:07 -0500 |
commit | 375ca548f7e3ac82acdd0959eddd1fa0e17c35cc (patch) | |
tree | 5360dc427e4eff7123613419ee522b7fda831de0 /include/linux/skbuff.h | |
parent | 58066ac9d7f5dcde4ef08c03b7e127f0522d9ea0 (diff) | |
parent | 40e196a906d969fd10d885c692d2674b3d657006 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Two easily resolvable overlapping change conflicts, one in
TCP and one in the eBPF verifier.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index a41e84f7730c..2069fb90a559 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -2439,7 +2439,7 @@ static inline void skb_probe_transport_header(struct sk_buff *skb, | |||
2439 | 2439 | ||
2440 | if (skb_flow_dissect_flow_keys_basic(skb, &keys, NULL, 0, 0, 0, 0)) | 2440 | if (skb_flow_dissect_flow_keys_basic(skb, &keys, NULL, 0, 0, 0, 0)) |
2441 | skb_set_transport_header(skb, keys.control.thoff); | 2441 | skb_set_transport_header(skb, keys.control.thoff); |
2442 | else | 2442 | else if (offset_hint >= 0) |
2443 | skb_set_transport_header(skb, offset_hint); | 2443 | skb_set_transport_header(skb, offset_hint); |
2444 | } | 2444 | } |
2445 | 2445 | ||
@@ -4235,6 +4235,12 @@ static inline bool skb_is_gso_sctp(const struct sk_buff *skb) | |||
4235 | return skb_shinfo(skb)->gso_type & SKB_GSO_SCTP; | 4235 | return skb_shinfo(skb)->gso_type & SKB_GSO_SCTP; |
4236 | } | 4236 | } |
4237 | 4237 | ||
4238 | static inline bool skb_is_gso_tcp(const struct sk_buff *skb) | ||
4239 | { | ||
4240 | return skb_is_gso(skb) && | ||
4241 | skb_shinfo(skb)->gso_type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6); | ||
4242 | } | ||
4243 | |||
4238 | static inline void skb_gso_reset(struct sk_buff *skb) | 4244 | static inline void skb_gso_reset(struct sk_buff *skb) |
4239 | { | 4245 | { |
4240 | skb_shinfo(skb)->gso_size = 0; | 4246 | skb_shinfo(skb)->gso_size = 0; |