OSDN Git Service

ipv6: don't zero inet_cork_full::fl after use
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 27 Jan 2022 00:36:26 +0000 (00:36 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Jan 2022 03:46:11 +0000 (19:46 -0800)
commit940ea00b0646f50170c2f66957a84c0ba1737f0c
tree439d846b77d12562a885d00419a97876023f933d
parentd656b2ea5fa797e515cd609ba5f4202901f3c466
ipv6: don't zero inet_cork_full::fl after use

It doesn't appear there is any reason for ip6_cork_release() to zero
cork->fl, it'll be fully filled on next initialisation. This 88 bytes
memset accounts to 0.3-0.5% of total CPU cycles.
It's also needed in following patches and allows to remove an extar flow
copy in udp_v6_push_pending_frames().

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>
net/ipv6/ip6_output.c
net/ipv6/udp.c