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

[Xen-devel] Re: [GIT/PATCH v5] xen network backend driver



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


 


Rackspace

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