]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net-next: Add netif_get_num_default_rss_queues
authorYuval Mintz <yuvalmin@broadcom.com>
Sun, 1 Jul 2012 03:18:50 +0000 (03:18 +0000)
committerJoe Jin <joe.jin@oracle.com>
Tue, 28 Aug 2012 07:23:13 +0000 (15:23 +0800)
commit40169f37a06d468531ec8f56f57214ff3af45b18
tree2c6569e4399997b6bb4fdecbc57403b2339fc233
parent259ba78afc1efe2e6c945f93ffbc28bd661ee484
net-next: Add netif_get_num_default_rss_queues

Most multi-queue networking driver consider the number of online cpus when
configuring RSS queues.
This patch adds a wrapper to the number of cpus, setting an upper limit on the
number of cpus a driver should consider (by default) when allocating resources
for his queues.

(cherry picked from commit 16917b87a23b429226527f393270047069d665e9)
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
include/linux/netdevice.h
net/core/dev.c