diff options
author | 2022-01-27 00:36:29 +0000 | |
---|---|---|
committer | 2022-01-27 19:46:11 -0800 | |
commit | 5298953e742dc9211d3b724fb5394da8a1f3ed04 (patch) | |
tree | 94c45d64fd12ef2e4e08b913518733906aa8fcc8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | udp6: pass flow in ip6_make_skb together with cork (diff) | |
download | linux-dev-5298953e742dc9211d3b724fb5394da8a1f3ed04.tar.xz linux-dev-5298953e742dc9211d3b724fb5394da8a1f3ed04.zip |
udp6: don't make extra copies of iflow
udpv6_sendmsg() first initialises an on-stack 88B struct flowi6 and then
copies it into cork, which is expensive. Avoid the copy in corkless case
by initialising on-stack cork->fl directly.
The main part is a couple of lines under !corkreq check. The rest
converts fl6 variable to be a pointer.
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions