mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-22 09:18:42 +00:00
All callers of tls_is_sk_tx_device_offloaded() currently do an equivalent of: if (skb->sk && tls_is_skb_tx_device_offloaded(skb->sk)) Have the helper accept skb and do the skb->sk check locally. Two drivers have local static inlines with similar wrappers already. While at it change the ifdef condition to TLS_DEVICE. Only TLS_DEVICE selects SOCK_VALIDATE_XMIT, so the two are equivalent. This makes removing the duplicated IS_ENABLED() check in funeth more obviously correct. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Acked-by: Maxim Mikityanskiy <maxtram95@gmail.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Acked-by: Tariq Toukan <tariqt@nvidia.com> Acked-by: Dimitris Michailidis <dmichail@fungible.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
|---|---|---|
| .. | ||
| clip_tbl.c | ||
| clip_tbl.h | ||
| cudbg_common.c | ||
| cudbg_entity.h | ||
| cudbg_if.h | ||
| cudbg_lib_common.h | ||
| cudbg_lib.c | ||
| cudbg_lib.h | ||
| cudbg_zlib.c | ||
| cudbg_zlib.h | ||
| cxgb4_cudbg.c | ||
| cxgb4_cudbg.h | ||
| cxgb4_dcb.c | ||
| cxgb4_dcb.h | ||
| cxgb4_debugfs.c | ||
| cxgb4_debugfs.h | ||
| cxgb4_ethtool.c | ||
| cxgb4_fcoe.c | ||
| cxgb4_fcoe.h | ||
| cxgb4_filter.c | ||
| cxgb4_filter.h | ||
| cxgb4_main.c | ||
| cxgb4_mps.c | ||
| cxgb4_ptp.c | ||
| cxgb4_ptp.h | ||
| cxgb4_tc_flower.c | ||
| cxgb4_tc_flower.h | ||
| cxgb4_tc_matchall.c | ||
| cxgb4_tc_matchall.h | ||
| cxgb4_tc_mqprio.c | ||
| cxgb4_tc_mqprio.h | ||
| cxgb4_tc_u32_parse.h | ||
| cxgb4_tc_u32.c | ||
| cxgb4_tc_u32.h | ||
| cxgb4_thermal.c | ||
| cxgb4_uld.c | ||
| cxgb4_uld.h | ||
| cxgb4.h | ||
| l2t.c | ||
| l2t.h | ||
| Makefile | ||
| sched.c | ||
| sched.h | ||
| sge.c | ||
| smt.c | ||
| smt.h | ||
| srq.c | ||
| srq.h | ||
| t4_chip_type.h | ||
| t4_hw.c | ||
| t4_hw.h | ||
| t4_msg.h | ||
| t4_pci_id_tbl.h | ||
| t4_regs.h | ||
| t4_tcb.h | ||
| t4_values.h | ||
| t4fw_api.h | ||
| t4fw_version.h | ||