diff options
author | David S. Miller <davem@davemloft.net> | 2013-06-05 18:56:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-05 19:37:30 -0400 |
commit | 6bc19fb82d4c05a9eee19d6d2aab2ce26e499ec2 (patch) | |
tree | 8b049ef383307f5dae91b5c9cf78dbfb9b74a4d1 /include/linux/skbuff.h | |
parent | 11a164a04382d735230b01f4cc46ad78a7c4abf6 (diff) | |
parent | 4d3797d7e1861ac1af150a6189315786c5e1c820 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Merge 'net' bug fixes into 'net-next' as we have patches
that will build on top of them.
This merge commit includes a change from Emil Goode
(emilgoode@gmail.com) that fixes a warning that would
have been introduced by this merge. Specifically it
fixes the pingv6_ops method ipv6_chk_addr() to add a
"const" to the "struct net_device *dev" argument and
likewise update the dummy_ipv6_chk_addr() declaration.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index b9997907a0f1..9995834d2cb6 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -2758,6 +2758,21 @@ static inline int skb_tnl_header_len(const struct sk_buff *inner_skb) | |||
2758 | SKB_GSO_CB(inner_skb)->mac_offset; | 2758 | SKB_GSO_CB(inner_skb)->mac_offset; |
2759 | } | 2759 | } |
2760 | 2760 | ||
2761 | static inline int gso_pskb_expand_head(struct sk_buff *skb, int extra) | ||
2762 | { | ||
2763 | int new_headroom, headroom; | ||
2764 | int ret; | ||
2765 | |||
2766 | headroom = skb_headroom(skb); | ||
2767 | ret = pskb_expand_head(skb, extra, 0, GFP_ATOMIC); | ||
2768 | if (ret) | ||
2769 | return ret; | ||
2770 | |||
2771 | new_headroom = skb_headroom(skb); | ||
2772 | SKB_GSO_CB(skb)->mac_offset += (new_headroom - headroom); | ||
2773 | return 0; | ||
2774 | } | ||
2775 | |||
2761 | static inline bool skb_is_gso(const struct sk_buff *skb) | 2776 | static inline bool skb_is_gso(const struct sk_buff *skb) |
2762 | { | 2777 | { |
2763 | return skb_shinfo(skb)->gso_size; | 2778 | return skb_shinfo(skb)->gso_size; |