1
0
Files
linux/include/linux
Eric Dumazet 6f532612cc net: introduce netdev_alloc_frag()
Fix two issues introduced in commit a1c7fff7e1
( 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@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-18 13:31:25 -04:00
..
2012-04-23 14:23:32 +03:00
2012-04-27 11:03:38 -06:00
2012-03-29 15:38:31 +10:30
2012-04-14 15:24:26 -04:00
2012-04-30 15:30:18 -07:00
2012-05-17 15:36:35 -04:00
2012-04-03 18:36:20 -04:00
2012-04-05 15:30:34 -07:00
2012-04-12 12:57:08 +02:00
2012-04-27 10:46:45 +08:00
2012-05-16 15:17:08 -04:00
2012-03-27 22:45:26 -04:00
2012-04-21 16:26:33 -04:00
2012-04-21 01:58:20 -04:00
2012-05-08 20:25:42 +02:00
2012-04-12 15:10:33 -04:00
2012-05-16 15:17:08 -04:00
2012-05-12 15:53:42 -04:00
2012-03-28 18:30:03 +01:00
2012-05-18 13:31:25 -04:00
2012-04-15 12:44:40 -04:00
2012-05-14 18:53:19 -04:00
2012-03-28 18:30:03 +01:00
2012-04-10 22:39:17 -06:00
2012-04-11 09:36:00 +01:00
2012-03-31 08:09:50 +05:30
2012-03-28 18:30:03 +01:00