Subject: Re: [PATCH net-next] net: skbuff: Skip early return in skb_unref when debugging

From: Florian Westphal <[email-masked]>
Date: Tue, 30 Jul 2024 12:50:12 +0200

Paolo Abeni <[email-masked]> 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.