aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorZiyang Xuan <[email protected]>2022-03-19 11:15:20 +0800
committerJakub Kicinski <[email protected]>2022-03-21 14:58:16 -0700
commitb1a6f56b6506c2cecef301b5c3804be656a8c334 (patch)
tree9e52be62727bdab332d02431856fc298859cbdc8 /net/lapb/lapb_subr.c
parent1ddcbfbf9dc9b59258dc5a4429f607a6828863d0 (diff)
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 <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions