From: Ben Hutchings Date: Mon, 27 Sep 2010 08:24:33 +0000 (+0000) Subject: net: Allow changing number of RX queues after device allocation X-Git-Tag: v2.6.37-rc1~147^2~340 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62fe0b40abb3484413800edaef9b087a20059acf;p=pandora-kernel.git net: Allow changing number of RX queues after device allocation For RPS, we create a kobject for each RX queue based on the number of queues passed to alloc_netdev_mq(). However, drivers generally do not determine the numbers of hardware queues to use until much later, so this usually represents the maximum number the driver may use and not the actual number in use. For TX queues, drivers can update the actual number using netif_set_real_num_tx_queues(). Add a corresponding function for RX queues, netif_set_real_num_rx_queues(). Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed