Re: [net-next PATCH RFC 4/8] net: core: add recycle capabilities on skbs via page_pool API

2018-12-07 Thread Ilias Apalodimas
On Fri, Dec 07, 2018 at 11:15:14PM -0800, David Miller wrote: > From: Jesper Dangaard Brouer > Date: Fri, 07 Dec 2018 00:25:47 +0100 > > > @@ -744,6 +745,10 @@ struct sk_buff { > > head_frag:1, > > xmit_more:1, > >

Re: [net-next PATCH RFC 4/8] net: core: add recycle capabilities on skbs via page_pool API

2018-12-07 Thread David Miller
From: Jesper Dangaard Brouer Date: Fri, 07 Dec 2018 00:25:47 +0100 > @@ -744,6 +745,10 @@ struct sk_buff { > head_frag:1, > xmit_more:1, > pfmemalloc:1; > + /* TODO: Future idea, extend mem_info with

[net-next PATCH RFC 4/8] net: core: add recycle capabilities on skbs via page_pool API

2018-12-06 Thread Jesper Dangaard Brouer
From: Ilias Apalodimas This patch is changing struct sk_buff, and is thus per-definition controversial. Place a new member 'mem_info' of type struct xdp_mem_info, just after members (flags) head_frag and pfmemalloc, And not in between headers_start/end to ensure skb_copy() and pskb_copy() work