diff options
author | Yuval Mintz <yuvalmin@broadcom.com> | 2012-06-30 23:18:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-05 06:06:44 -0400 |
commit | 16917b87a23b429226527f393270047069d665e9 (patch) | |
tree | d233f41b31e29688fab779e6885ede9b83f4867b /include/linux | |
parent | bf5e53e3717ed28be69d0663c65962d1731e7ee4 (diff) |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netdevice.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 2c2ecea28a1b..ab0251d541ab 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -2119,6 +2119,9 @@ static inline int netif_copy_real_num_queues(struct net_device *to_dev, | |||
2119 | #endif | 2119 | #endif |
2120 | } | 2120 | } |
2121 | 2121 | ||
2122 | #define DEFAULT_MAX_NUM_RSS_QUEUES (8) | ||
2123 | extern int netif_get_num_default_rss_queues(void); | ||
2124 | |||
2122 | /* Use this variant when it is known for sure that it | 2125 | /* Use this variant when it is known for sure that it |
2123 | * is executing from hardware interrupt context or with hardware interrupts | 2126 | * is executing from hardware interrupt context or with hardware interrupts |
2124 | * disabled. | 2127 | * disabled. |