benet: use GFP_KERNEL allocations when possible
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 1 Mar 2011 05:48:12 +0000 (05:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2011 21:02:30 +0000 (13:02 -0800)
commit1829b086d175ba07a01ff6934fd51a59bc9be4ce
tree6370f458a59f9a3065ae12213885f76ce40c7da6
parent6b8a66ee919e40111e3d257b2c22b5773e34ead1
benet: use GFP_KERNEL allocations when possible

Extend be_alloc_pages() with a gfp parameter, so that we use GFP_KERNEL
allocations instead of GFP_ATOMIC when not running in softirq context.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c