[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1307590146.3980.28.camel@edumazet-laptop>
Date: Thu, 09 Jun 2011 05:29:06 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH 4/9] ifb: convert to 64 bit stats
Le mercredi 08 juin 2011 à 17:54 -0700, Stephen Hemminger a écrit :
> pièce jointe document texte brut (ifb-stats64.patch)
> Convert input functional block device to use 64 bit stats.
>
> Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
>
>
> --- a/drivers/net/ifb.c 2011-06-07 16:58:31.317079332 -0700
> +++ b/drivers/net/ifb.c 2011-06-07 17:29:02.958161955 -0700
> @@ -42,7 +42,14 @@ struct ifb_private {
> struct tasklet_struct ifb_tasklet;
> int tasklet_pending;
> struct sk_buff_head rq;
> + u64 rx_packets;
> + u64 rx_bytes;
> + u64 rx_dropped;
> +
> struct sk_buff_head tq;
> + u64 tx_packets;
> + u64 tx_bytes;
> + u64 tx_dropped;
> };
>
Hi Stephen
This needs special synchronization on 32bit arches, as Ben pointed out
for other drivers.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists