From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0195440BF2; Tue, 30 Jul 2024 10:50:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722336634; cv=none; b=Bwb0nQ58aH2n8kQ86Jyl5hufLOv8wUgMDaNENF3iQfxL/fK/cjMtukMCi5CTOO0HB5sDwFciRRN0gPAOGEv+4VqNR9l18djTnl0onKMprnu+E8uJFYdmrXe1cEIE/b0XREd5XFOi1Ua+YLA0YLCFuTrQfCUnbVmZe/urYMmHPCI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722336634; c=relaxed/simple; bh=if265VCvG249S0C037ga2+9rWuA+o6BXYnogxToqFSg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cSBiiOpRbiSYBIy/hJf22qZOYs2bkDo7zfFQZfzxYp7dSEIqNRbFcHPPFigUpt3MHRWk/mr7WAMDBONKKC8bU6bWl4ENZwrqNpLSiML9CvRcA7qNc13Si91gFCFZmIQ9aF7Ggtc2+ES35s1e+9UTW4qK1pFvxWsHs5IeouqEfqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.client-ip=91.216.245.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1sYkQm-0000XD-8A; Tue, 30 Jul 2024 12:50:12 +0200 Date: Tue, 30 Jul 2024 12:50:12 +0200 From: Florian Westphal To: Paolo Abeni Cc: Breno Leitao , "David S. Miller" , Eric Dumazet , Jakub Kicinski , leit@meta.com, Chris Mason , "open list:NETWORKING DRIVERS" , open list Subject: Re: [PATCH net-next] net: skbuff: Skip early return in skb_unref when debugging Message-ID: <20240730105012.GA1809@breakpoint.cc> References: <20240729104741.370327-1-leitao@debian.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Paolo Abeni wrote: > > else if (likely(!refcount_dec_and_test(&skb->users))) > > return false; > > I think one assumption behind CONFIG_DEBUG_NET is that enabling such config > should not have any measurable impact on performances. If thats the case why does it exist at all? I was under impression that entire reason for CONFIG_DEBUG_NET was to enable more checks for fuzzers and the like, i.e. NOT for production kernels.