linux/drivers/net/ethernet/freescale/enetc
Vladimir Oltean 66a2f5ef68 net: enetc: allow tc-etf offload even with NETIF_F_CSUM_MASK
The Time-Specified Departure feature is indeed mutually exclusive with
TX IP checksumming in ENETC, but TX checksumming in itself is broken and
was removed from this driver in commit 82728b91f1 ("enetc: Remove Tx
checksumming offload code").

The blamed commit declared NETIF_F_HW_CSUM in dev->features to comply
with software TSO's expectations, and still did the checksumming in
software by calling skb_checksum_help(). So there isn't any restriction
for the Time-Specified Departure feature.

However, enetc_setup_tc_txtime() doesn't understand that, and blindly
looks for NETIF_F_CSUM_MASK.

Instead of checking for things which can literally never happen in the
current code base, just remove the check and let the driver offload
tc-etf qdiscs.

Fixes: acede3c5da ("net: enetc: declare NETIF_F_HW_CSUM and do it in software")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20220427203017.1291634-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-04-28 09:45:48 -07:00
..
enetc_cbdr.c net:enetc: command BD ring data memory alloc as one function alone 2022-02-09 13:23:25 +00:00
enetc_ethtool.c net: enetc: report software timestamping via SO_TIMESTAMPING 2022-03-25 15:37:09 -07:00
enetc_hw.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
enetc_ierb.c net: update NXP copyright text 2021-09-17 13:52:17 +01:00
enetc_ierb.h net: update NXP copyright text 2021-09-17 13:52:17 +01:00
enetc_mdio.c enetc: use correct format characters 2022-03-17 16:30:48 -07:00
enetc_msg.c
enetc_pci_mdio.c
enetc_pf.c net: enetc: use .mac_select_pcs() interface 2022-01-26 16:35:34 +00:00
enetc_pf.h net: phy: lynx: refactor Lynx PCS module to use generic phylink_pcs 2022-01-02 18:48:47 +00:00
enetc_ptp.c net: enetc: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:20 -08:00
enetc_qos.c net: enetc: allow tc-etf offload even with NETIF_F_CSUM_MASK 2022-04-28 09:45:48 -07:00
enetc_vf.c ethernet: enetc: use eth_hw_addr_set() 2021-10-16 08:53:46 +01:00
enetc.c net: enetc: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:20 -08:00
enetc.h net:enetc: command BD ring data memory alloc as one function alone 2022-02-09 13:23:25 +00:00
Kconfig net: enetc: automatically select IERB module 2021-04-20 16:56:32 -07:00
Makefile net: enetc: add a mini driver for the Integrated Endpoint Register Block 2021-04-19 15:31:45 -07:00