[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120518.133144.1518569661201765520.davem@davemloft.net>
Date: Fri, 18 May 2012 13:31:44 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: introduce netdev_alloc_frag()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 18 May 2012 17:12:12 +0200
> From: Eric Dumazet <edumazet@...gle.com>
>
> Fix two issues introduced in commit a1c7fff7e18f5
> ( net: netdev_alloc_skb() use build_skb() )
>
> - Must be IRQ safe (non NAPI drivers can use it)
> - Must not leak the frag if build_skb() fails to allocate sk_buff
>
> This patch introduces netdev_alloc_frag() for drivers willing to
> use build_skb() instead of __netdev_alloc_skb() variants.
>
> Factorize code so that :
> __dev_alloc_skb() is a wrapper around __netdev_alloc_skb(), and
> dev_alloc_skb() a wrapper around netdev_alloc_skb()
>
> Use __GFP_COLD flag.
>
> Almost all network drivers now benefit from skb->head_frag
> infrastructure.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists