lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ