Re: [PATCH net-next 1/4] net: skbuff: add skb_append_pagefrags and use it

2015-05-20 Thread Cong Wang
On Wed, May 20, 2015 at 8:35 AM, Hannes Frederic Sowa wrote: > +int skb_append_pagefrags(struct sk_buff *skb, struct page *page, > +int offset, size_t size) > +{ > + int i = skb_shinfo(skb)->nr_frags; > + > + if (skb_can_coalesce(skb, i, page, offset)) { > +

[PATCH net-next 1/4] net: skbuff: add skb_append_pagefrags and use it

2015-05-20 Thread Hannes Frederic Sowa
Signed-off-by: Hannes Frederic Sowa --- include/linux/skbuff.h | 3 +++ net/core/skbuff.c | 18 ++ net/ipv4/ip_output.c | 8 ++-- 3 files changed, 23 insertions(+), 6 deletions(-) diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 40960fe..b9d267b 100