Re: net-ipv6: Delete unnecessary checks before the function call "kfree_skb"

SF Markus Elfring
2015-11-15T06:17:46Z

> 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