aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2022-01-27 00:36:22 +0000
committerJakub Kicinski <kuba@kernel.org>2022-01-27 19:46:10 -0800
commitcd3c748077365dde89f2a3da738ce556fd04b0a3 (patch)
tree53cded77bfc603a21aa8008e2b0a0afade5dcb69 /net/ipv6/udp.c
parentMerge branch 'mlxsw-various-updates' (diff)
downloadlinux-dev-cd3c748077365dde89f2a3da738ce556fd04b0a3.tar.xz
linux-dev-cd3c748077365dde89f2a3da738ce556fd04b0a3.zip
ipv6: optimise dst refcounting on skb init
__ip6_make_skb() gets a cork->dst ref, hands it over to skb and shortly after puts cork->dst. Save two atomics by stealing it without extra referencing, ip6_cork_release() handles NULL cork->dst. 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 '')
0 files changed, 0 insertions, 0 deletions