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:	Thu, 11 Aug 2016 09:36:10 +0000
From:	Yuval Mintz <Yuval.Mintz@...gic.com>
To:	"sunil.kovvuri@...il.com" <sunil.kovvuri@...il.com>,
	netdev <netdev@...r.kernel.org>
CC:	linux-kernel <linux-kernel@...r.kernel.org>,
	"linux-arm-kernel@...ts.infradead.org" 
	<linux-arm-kernel@...ts.infradead.org>,
	Sunil Goutham <sgoutham@...ium.com>
Subject: RE: [PATCH 04/21] net: thunderx: Set queue count based on number of
 CPUs

> 81xx has only 4 CPUs, so it doesn't make sense to initialize entire Qset i.e 8
> queues by default. Made changes to queue initialization to init queues equal to
> number of CPUs or
> 8 queues whichever is lesser. Also this will be applicable to VMs with VNIC VF
> attached and having less VCPUs
...
> -	qcount = MAX_CMP_QUEUES_PER_QS;
> +	qcount = min_t(int, MAX_CMP_QUEUES_PER_QS, num_online_cpus());

We have netif_get_num_default_rss_queues() which does this.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ