skbuff: Add likely to skb pointer in build_skb()
authorGal Pressman <gal@nvidia.com>
Wed, 8 Mar 2023 13:17:20 +0000 (15:17 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Mar 2023 00:49:21 +0000 (16:49 -0800)
commit3c6401266f91c69771176d3b289abfeaec731611
tree9e4b1e05c3b934c6e03039df96df3f163cad750b
parent566b6701d5dfc823d1e7ee27a7f0c5719f4b93dd
skbuff: Add likely to skb pointer in build_skb()

Similarly to napi_build_skb(), it is likely the skb allocation in
build_skb() succeeded. frag_size != 0 is also likely, as stated in
__build_skb_around().

Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Larysa Zaremba <larysa.zaremba@intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c