summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-04-23 17:48:27 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-24 00:18:02 -0400
commit38ba0a65faf451dd46c7860b4fade84c0b8e444f (patch)
tree30689f565d6ff6a0b046e0c8b05a5aa7544144dd /include
parent783c175f902b1ae011f12de45770e7912638ea1a (diff)
downloadlinux-3.10-38ba0a65faf451dd46c7860b4fade84c0b8e444f.tar.gz
linux-3.10-38ba0a65faf451dd46c7860b4fade84c0b8e444f.tar.bz2
linux-3.10-38ba0a65faf451dd46c7860b4fade84c0b8e444f.zip
net: skb_can_coalesce returns a boolean
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/skbuff.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index f25795ca675..4a656b51825 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -1963,8 +1963,8 @@ static inline int skb_add_data(struct sk_buff *skb,
return -EFAULT;
}
-static inline int skb_can_coalesce(struct sk_buff *skb, int i,
- const struct page *page, int off)
+static inline bool skb_can_coalesce(struct sk_buff *skb, int i,
+ const struct page *page, int off)
{
if (i) {
const struct skb_frag_struct *frag = &skb_shinfo(skb)->frags[i - 1];
@@ -1972,7 +1972,7 @@ static inline int skb_can_coalesce(struct sk_buff *skb, int i,
return page == skb_frag_page(frag) &&
off == frag->page_offset + skb_frag_size(frag);
}
- return 0;
+ return false;
}
static inline int __skb_linearize(struct sk_buff *skb)