mirror_ubuntu-kernels/drivers/net/ethernet/chelsio/cxgb4
Jakub Kicinski ed3c9a2fca net: tls: make the offload check helper take skb not socket
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>
2023-06-15 09:01:05 +01:00
..
clip_tbl.c
clip_tbl.h
cudbg_common.c
cudbg_entity.h
cudbg_if.h
cudbg_lib_common.h
cudbg_lib.c cxgb4: fix missing unlock on ETHOFLD desc collect fail path 2022-09-26 13:17:53 -07:00
cudbg_lib.h
cudbg_zlib.c
cudbg_zlib.h
cxgb4_cudbg.c
cxgb4_cudbg.h
cxgb4_dcb.c cxgb4: Fix typo in string 2022-07-01 13:37:54 +01:00
cxgb4_dcb.h
cxgb4_debugfs.c cxgb4: Use the bitmap API to allocate bitmaps 2022-07-05 12:33:48 +02:00
cxgb4_debugfs.h
cxgb4_ethtool.c net: ethernet: move from strlcpy with unused retval to strscpy 2022-08-31 14:11:26 -07:00
cxgb4_fcoe.c
cxgb4_fcoe.h
cxgb4_filter.c
cxgb4_filter.h
cxgb4_main.c net: tls: make the offload check helper take skb not socket 2023-06-15 09:01:05 +01:00
cxgb4_mps.c
cxgb4_ptp.c ptp: convert remaining drivers to adjfine interface 2022-11-11 10:58:39 +00:00
cxgb4_ptp.h
cxgb4_tc_flower.c cxgb4: fix use after free bugs caused by circular dependency problem 2023-04-18 09:25:53 +02:00
cxgb4_tc_flower.h
cxgb4_tc_matchall.c flow_offload: reject offload for all drivers with invalid police parameters 2022-02-28 11:12:20 +00:00
cxgb4_tc_matchall.h
cxgb4_tc_mqprio.c
cxgb4_tc_mqprio.h net/sched: move struct tc_mqprio_qopt_offload from pkt_cls.h to pkt_sched.h 2023-02-06 10:06:43 +00:00
cxgb4_tc_u32_parse.h
cxgb4_tc_u32.c
cxgb4_tc_u32.h
cxgb4_thermal.c thermal/core: Use the thermal zone 'devdata' accessor in remaining drivers 2023-03-03 20:45:02 +01:00
cxgb4_uld.c
cxgb4_uld.h net: tls: make the offload check helper take skb not socket 2023-06-15 09:01:05 +01:00
cxgb4.h thermal/drivers/cxgb4: Use generic thermal_zone_get_trip() function 2023-01-06 14:14:48 +01:00
l2t.c
l2t.h
Makefile
sched.c
sched.h
sge.c net: tls: make the offload check helper take skb not socket 2023-06-15 09:01:05 +01:00
smt.c
smt.h
srq.c
srq.h
t4_chip_type.h
t4_hw.c net: chelsio: cxgb4: Avoid potential negative array offset 2022-05-06 15:41:27 -07:00
t4_hw.h
t4_msg.h RDMA/cxgb4: fix accept failure due to increased cpl_t5_pass_accept_rpl size 2022-08-16 16:20:52 +03:00
t4_pci_id_tbl.h
t4_regs.h
t4_tcb.h
t4_values.h
t4fw_api.h
t4fw_version.h