[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABoNC82RO2uvn9TfToAygEspUZnNrefXgO6SGpZoSAayCp3QiA@mail.gmail.com>
Date: Thu, 17 Nov 2011 15:46:53 +0800
From: Junchang Wang <junchangwang@...il.com>
To: Stephen Hemminger <stephen.hemminger@...tta.com>
Cc: netdev@...r.kernel.org, romieu@...zoreil.com,
nic swsd <nic_swsd@...ltek.com>,
eric dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH net-next] r8169: Add 64bit statistics
> You dont need per-cpu since Tx is locked by dev->xmit_lock and
> rx is implicitly single threaded by NAPI.
Thanks.
>You do need to have
> two u64_stat_sync entries (one for Tx and one for Rx).
You mean Rx and Tx will perform on different cores at one moment.
So I need a sync for Tx to protect tx_xxx, and another for Rx to
protect rx_xxx. Is that right?
Thanks.
--
--Junchang
--
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