[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1308572991.22851.50.camel@jtkirshe-mobl>
Date: Mon, 20 Jun 2011 05:29:50 -0700
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: "davem@...emloft.net" <davem@...emloft.net>,
Stephen Hemminger <shemminger@...tta.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"gospo@...hat.com" <gospo@...hat.com>
Subject: Re: [net-next 04/17] ixgbevf: provide 64 bit statistics
On Sun, 2011-06-19 at 21:59 -0700, Eric Dumazet wrote:
> Le dimanche 19 juin 2011 à 17:58 -0700, Jeff Kirsher a écrit :
> > From: Stephen Hemminger <shemminger@...tta.com>
> >
> > Compute statistics per ring using 64 bits, and provide
> > network device stats in 64 bits.
> >
> > Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
> > Acked-by: Greg Rose <Gregory.v.rose@...el.com>
> > Tested-by: Evan Swanson <evan.swanson@...el.com>
> > Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
> > ---
>
> >
> > +static struct rtnl_link_stats64 *ixgbevf_get_stats(struct net_device *netdev,
> > + struct rtnl_link_stats64 *stats)
> > +{
> > + struct ixgbevf_adapter *adapter = netdev_priv(netdev);
> > + int i;
> > +
> > + ixgbevf_update_stats(adapter);
> > +
> > + stats->multicast = adapter->stats.vfmprc - adapter->stats.base_vfmprc;
> > +
> > + for (i = 0; i < adapter->num_rx_queues; i++) {
> > + stats->rx_bytes += adapter->rx_ring[i].total_bytes;
> > + stats->rx_packets += adapter->rx_ring[i].total_packets;
> > + }
> > +
> > + for (i = 0; i < adapter->num_tx_queues; i++) {
> > + stats->tx_bytes += adapter->tx_ring[i].total_bytes;
> > + stats->tx_packets += adapter->tx_ring[i].total_packets;
> > + }
> > +
> > + return stats;
> > +}
> > +
>
> Unfortunately this patch is racy on 32bit arches.
>
> Jeff, maybe you missed all the discussion we had lately on these
> conversions, needing appropriate synchronization ?
I apologize I did not see the discussion regarding Stephen's patches.
>
> It seems a lot of bugs were added lately with Stephen patches, this is
> rather unfortunate...
>
> I guess I'll have to review them and send fixes.
I will drop Stephen's patch from this series and look forward to your
fixes. Thanks Eric.
Download attachment "signature.asc" of type "application/pgp-signature" (491 bytes)
Powered by blists - more mailing lists