]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: remove netdev_alloc_page and use __GFP_COLD
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 22 Nov 2011 10:57:41 +0000 (10:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2011 21:43:32 +0000 (16:43 -0500)
commit1f2149c1df50c8c712950872675f46e6e44629f0
treea33a556696e27611b6b38cdcbb6de9315f483bd4
parent84b405011166e663fe9ef56c29b1d76f59b35568
net: remove netdev_alloc_page and use __GFP_COLD

Given we dont use anymore the struct net_device *dev argument, and this
interface brings litle benefit, remove netdev_{alloc|free}_page(), to
debloat include/linux/skbuff.h a bit.

(Some drivers used a mix of these interfaces and alloc_pages())

When allocating a page given to device for DMA transfer (device to
memory), it makes sense to use a cold one (__GFP_COLD)

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
CC: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c
drivers/net/ethernet/chelsio/cxgb4vf/sge.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/usb/cdc-phonet.c
drivers/usb/gadget/f_phonet.c
include/linux/skbuff.h