ipv6: partially inline ipv6_fixup_options
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 27 Jan 2022 00:36:31 +0000 (00:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jan 2022 03:46:11 +0000 (19:46 -0800)
commit31ed2261e88fbd1eb62fc870ef2c6b2cf2951336
tree48e95b0161655f432a0d3b3172130bfb9090cec8
parent40ac240c2e06e4b5477705da1b37fb1d160572de
ipv6: partially inline ipv6_fixup_options

Inline a part of ipv6_fixup_options() to avoid extra overhead on
function call if opt is NULL.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ipv6.h
net/ipv6/exthdrs.c