From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: Add PGM protocol support to the IP stack Date: Mon, 29 Mar 2010 16:01:07 -0700 Message-ID: <4BB13133.6030500@zytor.com> References: <87tysccjrn.fsf@basil.nowhere.org> <20100322163609.GZ20695@one.firstfloor.org> <877hp4i76d.fsf@basil.nowhere.org> <20100322185310.GA20695@one.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Christoph Lameter , David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Andi Kleen Return-path: In-Reply-To: <20100322185310.GA20695@one.firstfloor.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 03/22/2010 11:53 AM, Andi Kleen wrote: > > There's just no portable atomic64_t. Ok maybe you can use the socket lock > to synchronize all the counts if they are only per socket. > In 2.6.34 there is (although some arches which could support it natively don't as of yet... but that's fixable.) See lib/atomic64.c. -hpa