[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100927.215127.115942543.davem@davemloft.net>
Date: Mon, 27 Sep 2010 21:51:27 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next-2.6 0/4] tunnels: SMP safe accounting
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 27 Sep 2010 12:32:48 +0200
> Before making ip_gre, ipip, and sit transmit path lockless, it is
> necessary to make accounting SMP safe, not only for correctness but to
> avoid cache line ping pongs.
>
> This also takes care of receive path, already lockless and using unsafe
> stats accounting.
>
> I chose to use small percpu structures, holding {rx|tx}_{packets|bytes}
> only, and keep all other counters in netdev->stats, since they should be
> seldom used.
Series applied, thanks a lot Eric!
--
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