summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorZiyang Xuan <william.xuanziyang@huawei.com>2022-03-19 06:15:20 +0300
committerJakub Kicinski <kuba@kernel.org>2022-03-22 00:58:16 +0300
commitb1a6f56b6506c2cecef301b5c3804be656a8c334 (patch)
tree9e52be62727bdab332d02431856fc298859cbdc8 /tools/perf/scripts/python/stackcollapse.py
parent1ddcbfbf9dc9b59258dc5a4429f607a6828863d0 (diff)
downloadlinux-b1a6f56b6506c2cecef301b5c3804be656a8c334.tar.xz
net/tls: optimize judgement processes in tls_set_device_offload()
It is known that priority setting HW offload when set tls TX/RX offload by setsockopt(). Check netdevice whether support NETIF_F_HW_TLS_TX or not at the later stages in the whole tls_set_device_offload() process, some memory allocations have been done before that. We must release those memory and return error if we judge the netdevice not support NETIF_F_HW_TLS_TX. It is redundant. Move NETIF_F_HW_TLS_TX judgement forward, and move start_marker_record and offload_ctx memory allocation back slightly. Thus, we can get simpler exception handling process. Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions