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] [day] [month] [year] [list]
Message-ID: <562A0054.1030200@oracle.com>
Date:	Fri, 23 Oct 2015 17:39:32 +0800
From:	Joe Jin <joe.jin@...cle.com>
To:	Jan Beulich <JBeulich@...e.com>
Cc:	Ian Campbell <ian.campbell@...rix.com>, wei.liu2@...rix.com,
	"David S. Miller" <davem@...emloft.net>,
	xen-devel@...ts.xenproject.org,
	Boris Ostrovsky <boris.ostrovsky@...cle.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
	netdev@...r.kernel.org
Subject: Re: [PATCH V2 2/2] xen-netfront: limit vnic max_queues number to
 online cpus

On 10/23/2015 05:30 PM, Jan Beulich wrote:
>>>> On 23.10.15 at 11:19, <joe.jin@...cle.com> wrote:
>>  
>> @@ -164,6 +166,19 @@ struct netfront_rx_info {
>>  	struct xen_netif_extra_info extras[XEN_NETIF_EXTRA_TYPE_MAX - 1];
>>  };
>>  
>> +static int xennet_set_max_queues(const char *val, struct kernel_param *kp)
>> +{
>> +	unsigned int cpus = num_online_cpus();
>> +	unsigned int max_queues = simple_strtoul(val, NULL, 10);
>> +
>> +	if (max_queues == 0 || max_queues > cpus) {
>> +		pr_err("max_queues %u is out of range [0 - %u]!\n", 
> 
> I suppose you mean "...[1 - %u]!\n" here?

Yes you are right, you catch my fault again :)

Thanks so much, will resend new later.

Regards,
Joe

> Jan
> 


-- 
Oracle <http://www.oracle.com>
Joe Jin | Software Development Director | +8610.6106.5624
ORACLE | Linux and Virtualization
No. 24 Zhongguancun Software Park, Haidian District | 100193 Beijing 
--
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