]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: help __ip6_finish_output() inlining
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 28 Apr 2022 10:58:47 +0000 (11:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Apr 2022 11:58:45 +0000 (12:58 +0100)
commitd7b413d6e97e66274507b823f3c8e1d32e3c9ab8
treefa8cf952b429b5d0e3487da7da566a4a522f9887
parent4e39750f93dab03a7614cb847a94545c8c0272b5
ipv6: help __ip6_finish_output() inlining

There are two callers of __ip6_finish_output(), both are in
ip6_finish_output(). We can combine the call sites into one and handle
return code after, that will inline __ip6_finish_output().

Note, error handling under NET_XMIT_CN will only return 0 if
__ip6_finish_output() succeded, and in this case it return 0.
Considering that NET_XMIT_SUCCESS is 0, it'll be returning exactly the
same result for it as before.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c