diff options
author | 2020-11-30 11:09:46 +0100 | |
---|---|---|
committer | 2020-12-01 16:56:01 -0800 | |
commit | d38aa3962687d06e62bd7bae47a655f359261324 (patch) | |
tree | cacf0e9bf58a39303e40d9a7adc3d1a62399066c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | s390/ctcm: Avoid temporary allocation of struct th_header and th_sweep. (diff) | |
download | wireguard-linux-d38aa3962687d06e62bd7bae47a655f359261324.tar.xz wireguard-linux-d38aa3962687d06e62bd7bae47a655f359261324.zip |
s390/ctcm: Avoid temporary allocation of struct qllc.
The size of struct qllc is 2 byte. The memory for is allocated,
initialized, used and deallocated a few lines later.
It is more efficient to avoid the allocation/free dance and assign the
values directly to skb's data part instead of using memcpy() for it.
Avoid an allocation of struct qllc and use the resulting skb pointer
instead.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
[jwi: remove a newline, reflow the commit msg]
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.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