[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5648238A.20109@users.sourceforge.net>
Date: Sun, 15 Nov 2015 07:17:46 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Alexey Kuznetsov <kuznet@....inr.ac.ru>,
"David S. Miller" <davem@...emloft.net>,
Hideaki Yoshfuji <yoshfuji@...ux-ipv6.org>,
James Morris <jmorris@...ei.org>,
Jozsef Kadlecsik <kadlec@...ckhole.kfki.hu>,
Pablo Neira Ayuso <pablo@...filter.org>,
Patrick McHardy <kaber@...sh.net>, netdev@...r.kernel.org,
netfilter-devel@...r.kernel.org, coreteam@...filter.org,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: Re: net-ipv6: Delete unnecessary checks before the function call
"kfree_skb"
> While if the test is done in kfree_skb(), the branch predictor of the
> cpu wont be able to predict things.
>
> By feeding too many NULL pointers to kfree_skb(), we slow down it.
Would it make sense to annotate checks before such function calls
as "UNLIKELY"?
Regards,
Markus
--
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