[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1346211528.3571.26.camel@edumazet-glaptop>
Date: Tue, 28 Aug 2012 20:38:48 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Flavio Leitner <fbl@...hat.com>
Cc: Wei Yongjun <weiyj.lk@...il.com>, davem@...emloft.net,
yongjun_wei@...ndmicro.com.cn, netdev@...r.kernel.org
Subject: Re: [PATCH] skbuff: remove pointless conditional before kfree_skb()
On Tue, 2012-08-28 at 17:39 -0300, Flavio Leitner wrote:
> Ok, and what if kfree_skb() becomes a macro that first checks
> if the skb is NULL and if not, call the _kfree_skb() to
> continue as before?
>
> #define kfree_skb(skb) \
> if (skb) \
> _kfree_skb(skb) \
Then its adding a conditional test on each call site and increase
kernel code size.
So if you plan submitting such patch, please keep the whole thing out of
line.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists