From: Eric Dumazet Date: Thu, 23 Sep 2010 17:26:35 +0000 (+0000) Subject: rps: allocate rx queues in register_netdevice only X-Git-Tag: v2.6.37-rc1~147^2~353 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b4bf461f05d56ced6d6b8f3b4831adc7076f565;p=pandora-kernel.git rps: allocate rx queues in register_netdevice only Instead of having two places were we allocate dev->_rx, introduce netif_alloc_rx_queues() helper and call it only from register_netdevice(), not from alloc_netdev_mq() Goal is to let drivers change dev->num_rx_queues after allocating netdev and before registering it. This also removes a lot of ifdefs in net/core/dev.c Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed