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

From: SF Markus Elfring
Date: Sun Nov 15 2015 - 01:19:22 EST


> 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 linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/