Subject: Re: [RFC net-next (v2) 12/14] ixgbe: set maximal number of default RSS queues

From: Alexander Duyck <[email-masked]>
Date: Mon, 25 Jun 2012 08:44:48 -0700

On 06/25/2012 04:45 AM, Yuval Mintz wrote:
> Signed-off-by: Yuval Mintz <[email-masked]>
> Signed-off-by: Eilon Greenstein <[email-masked]>
>
> Cc: Jeff Kirsher <[email-masked]>
> Cc: John Fastabend <[email-masked]>
> Cc: Alexander Duyck <[email-masked]>
> ---
>  drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
> index af1a531..b352ea8 100644
> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c
> @@ -802,7 +802,7 @@ static int ixgbe_set_interrupt_capability(struct ixgbe_adapter *adapter)
>  	 * The default is to use pairs of vectors.
>  	 */
>  	v_budget = max(adapter->num_rx_queues, adapter->num_tx_queues);
> -	v_budget = min_t(int, v_budget, num_online_cpus());
> +	v_budget = min_t(int, v_budget, netif_get_num_default_rss_queues());
>  	v_budget += NON_Q_VECTORS;
>  
>  	/*
This doesn't limit queues, only interrupt vectors.  As I told you before
you should look at the ixgbe_set_rss_queues function if you actually
want to limit the number of RSS queues.

Thanks,

Alex