WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH 3/4] [Net] Support Xen accelerated network plugin

To: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH 3/4] [Net] Support Xen accelerated network plugin modules
From: Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 May 2007 10:50:03 -0700
Cc: muli@xxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, herbert@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 May 2007 02:10:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1179494208.14376.10.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Linux Foundation
References: <1179494208.14376.10.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 18 May 2007 14:16:48 +0100
Kieran Mansley <kmansley@xxxxxxxxxxxxxx> wrote:

> Add support to Xen netfront for accelerated plugin module
> 
> diff -r ce3d5c548e67 linux-2.6-xen-
> sparse/drivers/xen/netfront/netfront.c
> --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c Thu May 17
> 09:56:38 2007 +0100
> +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c Fri May 18
> 10:26:34 2007 +0100
>
> +/*
> + * Initialise the netfront state of an accelerator plugin module.
> + */ 
> +static int init_accelerator(const char *frontend, 
> +                            struct netfront_accelerator **result)
> +{
> +        struct netfront_accelerator *accelerator = 
> +                kmalloc(sizeof(struct netfront_accelerator),
> GFP_KERNEL);


> +
> +                        if ( accelerator->hooks == NULL )
> +                                DPRINTK("%s: no hooks set",
> __FUNCTION__);
> +                        else {
> +                                spin_unlock_irqrestore
> (&accelerators_lock, flags);
> +                                accelerator->hooks->new_device(np-
> >netdev, dev);
> +                                spin_lock_irqsave(&accelerators_lock,
> flags);
> +                        }
> +
> +                        if ( (--accelerator->hooks_usecount) == 0 )
> +                                accelerator_remove_hooks(accelerator);
> +                        spin_unlock_irqrestore(&accelerators_lock,
> flags);

Your mailer is word wrapping the patch so it won't apply as is.

-- 
Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel