Re: [PATCH net-next 4/4] net: Add Open vSwitch kernel components. |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Fri, Nov 18, 2011 at 3:23 PM, Stephen Hemminger
<shemminger@xxxxxxxxxx> wrote:
> On Fri, 18 Nov 2011 15:12:18 -0800
> Jesse Gross <jesse@xxxxxxxxxx> wrote:
>
>> + write_seqcount_begin(&stats->seqlock);
>> + stats->tx_packets++;
>> + stats->tx_bytes += sent;
>> + write_seqcount_end(&stats->seqlock);
>
> There is a u64_stats_sync set of macros for this. It has the
> advantage of becoming a NOP on 64 bit platforms.
The reason why I did it this way is it ties the packet and byte count together.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Kernel Discussion]
[Ethernet Bridging]
[Linux Wireless Networking]
[Linux Bluetooth Networking]
[Linux Networking Users]
[VLAN]
[Git]
[IETF Annouce]
[Linux Assembly]
[Security]
[Bugtraq]
[Photo]
[Singles Social Networking]
[Yosemite Information]
[MIPS Linux]
[ARM Linux Kernel]
[ARM Linux]
[Linux Virtualization]
[Linux Security]
[Linux IDE]
[Linux RAID]
[Linux SCSI]
[Free Dating]