|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V2 2/2] xen-netfront: limit vnic max_queues number to online cpus
>>> On 23.10.15 at 11:19, <joe.jin@xxxxxxxxxx> 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?
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |