diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 821c7f45d2a7..6f2bb860e051 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -500,7 +500,7 @@ struct sk_buff { | |||
500 | union { | 500 | union { |
501 | __u32 mark; | 501 | __u32 mark; |
502 | __u32 dropcount; | 502 | __u32 dropcount; |
503 | __u32 avail_size; | 503 | __u32 reserved_tailroom; |
504 | }; | 504 | }; |
505 | 505 | ||
506 | sk_buff_data_t inner_transport_header; | 506 | sk_buff_data_t inner_transport_header; |
@@ -1447,7 +1447,10 @@ static inline int skb_tailroom(const struct sk_buff *skb) | |||
1447 | */ | 1447 | */ |
1448 | static inline int skb_availroom(const struct sk_buff *skb) | 1448 | static inline int skb_availroom(const struct sk_buff *skb) |
1449 | { | 1449 | { |
1450 | return skb_is_nonlinear(skb) ? 0 : skb->avail_size - skb->len; | 1450 | if (skb_is_nonlinear(skb)) |
1451 | return 0; | ||
1452 | |||
1453 | return skb->end - skb->tail - skb->reserved_tailroom; | ||
1451 | } | 1454 | } |
1452 | 1455 | ||
1453 | /** | 1456 | /** |