[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 6 Jul 2011 18:08:39 -0700
From: Dmitry Torokhov <dtor@...are.com>
To: pv-drivers@...are.com
Cc: Shreyas Bhatewara <sbhatewara@...are.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
yongwang@...are.com
Subject: Re: [Pv-drivers] [PATCH] vmxnet3: round down # of queues to power of two
On Wednesday, July 06, 2011 05:58:51 PM Shreyas Bhatewara wrote:
>
> + if (!is_power_of_2(num_rx_queues))
> + num_rx_queues = rounddown_pow_of_two(num_rx_queues);
> +
No need to do the check, just do:
num_rx_queues = rounddown_pow_of_two(num_rx_queues);
Thanks,
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists