]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/netdevice.h
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2012 10:06:44 +0000 (03:06 -0700)
commit16917b87a23b429226527f393270047069d665e9
treed233f41b31e29688fab779e6885ede9b83f4867b
parentbf5e53e3717ed28be69d0663c65962d1731e7ee4
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.

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>
include/linux/netdevice.h
net/core/dev.c