diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-01-27 00:36:30 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-01-27 19:46:11 -0800 |
commit | 40ac240c2e06e4b5477705da1b37fb1d160572de (patch) | |
tree | 5afd911fc5b755701078c2b2dd7fcdde58b70fd4 /drivers/net/dsa/dsa_loop.c | |
parent | 5298953e742dc9211d3b724fb5394da8a1f3ed04 (diff) |
ipv6: optimise dst refcounting on cork init
udpv6_sendmsg() doesn't need dst after calling ip6_make_skb(), so
instead of taking an additional reference inside ip6_setup_cork()
and releasing the initial one afterwards, we can hand over a reference
into ip6_make_skb() saving two atomics. The only other user of
ip6_setup_cork() is ip6_append_data() and it requires an extra
dst_hold().
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>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions