|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [GIT/PATCH v5] xen network backend driver
To: |
Eric Dumazet <eric.dumazet@xxxxxxxxx> |
Subject: |
[Xen-devel] Re: [GIT/PATCH v5] xen network backend driver |
From: |
Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx> |
Date: |
Mon, 14 Mar 2011 19:33:28 +0000 |
Cc: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ben, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, "netdev@xxxxxxxxxxxxxxx" <netdev@xxxxxxxxxxxxxxx>, Michał Mirosław <mirqus@xxxxxxxxx>, Francois Romieu <romieu@xxxxxxxxxxxxx>, Hutchings <bhutchings@xxxxxxxxxxxxxx>, Stephen Hemminger <shemminger@xxxxxxxxxx> |
Delivery-date: |
Mon, 14 Mar 2011 12:34:16 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<1300129032.3423.170.camel@edumazet-laptop> |
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
Organization: |
Citrix Systems, Inc. |
References: |
<1300112879.17339.2162.camel@xxxxxxxxxxxxxxxxxxxxxx> <1300129032.3423.170.camel@edumazet-laptop> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On Mon, 2011-03-14 at 18:57 +0000, Eric Dumazet wrote:
> Le lundi 14 mars 2011 à 14:27 +0000, Ian Campbell a écrit :
> > + /* Statistics */
> > + unsigned long rx_gso_checksum_fixup;
>
> this is an "unsigned long" field
> > +static void xenvif_get_ethtool_stats(struct net_device *dev,
> > + struct ethtool_stats *stats, u64 * data)
> > +{
> > + void *vif = netdev_priv(dev);
> > + int i;
> > +
> > + for (i = 0; i < ARRAY_SIZE(xenvif_stats); i++)
> > + data[i] = *(int *)(vif + xenvif_stats[i].offset);
>
> so use : data[i] = *(unsigned long *)(vif + xenvif_stats[i].offset);
Oops, will do, thanks.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|