diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-05-14 12:20:17 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-05-14 12:20:17 -0400 |
commit | 29b116b9e177cd4403d607c3e4d4e5df8f6e365d (patch) | |
tree | 3c6b7dcadada9cb9f91ec8fe67612dc8f95756c3 /include/linux/skbuff.h | |
parent | b0abc660848cf2fdc08231982a641c8cd5da2393 (diff) | |
parent | a2cfa87491c4ef47de3c4e0973ebb457019a3963 (diff) |
Merge tag 'v3.2.17' into v3.2-rt
This is the 3.2.17 stable release
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index ea9736d2f593..f00a8b28699f 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -459,6 +459,7 @@ struct sk_buff { union { __u32 mark; __u32 dropcount; + __u32 avail_size; }; __u16 vlan_tci; @@ -1333,6 +1334,18 @@ static inline int skb_tailroom(const struct sk_buff *skb) } /** + * skb_availroom - bytes at buffer end + * @skb: buffer to check + * + * Return the number of bytes of free space at the tail of an sk_buff + * allocated by sk_stream_alloc() + */ +static inline int skb_availroom(const struct sk_buff *skb) +{ + return skb_is_nonlinear(skb) ? 0 : skb->avail_size - skb->len; +} + +/** * skb_reserve - adjust headroom * @skb: buffer to alter * @len: bytes to move |