[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH net-next V2 2/2] xen-netfront: split event channels support for Xen frontend driver



>>> On 21.05.13 at 20:35, Wei Liu <wei.liu2@xxxxxxxxxx> wrote:
> @@ -1550,22 +1651,18 @@ static int setup_netfront(struct xenbus_device *dev, 
> struct netfront_info *info)
>               goto grant_rx_ring_fail;
>       info->rx_ring_ref = err;
>  
> -     err = xenbus_alloc_evtchn(dev, &info->evtchn);
> +     if (feature_split_evtchn)
> +             err = setup_netfront_split(info);
> +     else
> +             err = setup_netfront_single(info);
>       if (err)
>               goto alloc_evtchn_fail;

You could easily fall back to single event channel mode here if split
setup fails.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.