From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754486Ab0C2XB3 (ORCPT ); Mon, 29 Mar 2010 19:01:29 -0400 Received: from terminus.zytor.com ([198.137.202.10]:59871 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754140Ab0C2XB2 (ORCPT ); Mon, 29 Mar 2010 19:01:28 -0400 Message-ID: <4BB13133.6030500@zytor.com> Date: Mon, 29 Mar 2010 16:01:07 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 MIME-Version: 1.0 To: Andi Kleen CC: Christoph Lameter , David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Add PGM protocol support to the IP stack References: <87tysccjrn.fsf@basil.nowhere.org> <20100322163609.GZ20695@one.firstfloor.org> <877hp4i76d.fsf@basil.nowhere.org> <20100322185310.GA20695@one.firstfloor.org> In-Reply-To: <20100322185310.GA20695@one.firstfloor.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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