Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964861AbVLNSdg (ORCPT ); Wed, 14 Dec 2005 13:33:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964869AbVLNSde (ORCPT ); Wed, 14 Dec 2005 13:33:34 -0500 Received: from relay.axxeo.de ([213.239.199.237]:50834 "EHLO relay.axxeo.de") by vger.kernel.org with ESMTP id S932426AbVLNSdd (ORCPT ); Wed, 14 Dec 2005 13:33:33 -0500 From: Ingo Oeser Organization: Axxeo GmbH To: Sridhar Samudrala Subject: Re: [RFC][PATCH 3/3] TCP/IP Critical socket communication mechanism Date: Wed, 14 Dec 2005 19:33:49 +0100 User-Agent: KMail/1.7.2 Cc: Alan Cox , linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <1134559039.25663.12.camel@localhost.localdomain> <1134583896.8698.33.camel@w-sridhar2.beaverton.ibm.com> In-Reply-To: <1134583896.8698.33.camel@w-sridhar2.beaverton.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512141933.49684.netdev@axxeo.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 930 Lines: 32 Sridhar Samudrala wrote: > The only reason i made these macros is that i would expect this to a compile > time configurable option so that there is zero overhead for regular users. > > #ifdef CONFIG_CRIT_SOCKET > #define SK_CRIT_ALLOC(sk, flags) ((sk->sk_allocation & __GFP_CRITICAL) | flags) > #define CRIT_ALLOC(flags) (__GFP_CRITICAL | flags) > #else > #define SK_CRIT_ALLOC(sk, flags) flags > #define CRIT_ALLOC(flags) flags > #endif Oh, that's much simpler to achieve: #ifdef CONFIG_CRIT_SOCKET #define __GFP_CRITICAL_SOCKET __GFP_CRITICAL #else #define __GFP_CRITICAL_SOCKET 0 #endif Maybe we can get better naming here, but you get the point, I think. Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/