android_kernel_motorola_sm6375/drivers/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Linus Walleij 7eb94e52eb net: ethernet: cortina: Drop TSO support
[ Upstream commit ac631873c9e7a50d2a8de457cfc4b9f86666403e ]

The recent change to allow large frames without hardware checksumming
slotted in software checksumming in the driver if hardware could not
do it.

This will however upset TSO (TCP Segment Offloading). Typical
error dumps includes this:

skb len=2961 headroom=222 headlen=66 tailroom=0
(...)
WARNING: CPU: 0 PID: 956 at net/core/dev.c:3259 skb_warn_bad_offload+0x7c/0x108
gemini-ethernet-port: caps=(0x0000010000154813, 0x00002007ffdd7889)

And the packets do not go through.

The TSO implementation is bogus: a TSO enabled driver must propagate
the skb_shinfo(skb)->gso_size value to the TSO engine on the NIC.

Drop the size check and TSO offloading features for now: this
needs to be fixed up properly.

After this ethernet works fine on Gemini devices with a direct connected
PHY such as D-Link DNS-313.

Also tested to still be working with a DSA switch using the Gemini
ethernet as conduit interface.

Link: https://lore.kernel.org/netdev/CANn89iJLfxng1sYL5Zk0mknXpyYQPCp83m3KgD2KJ2_hKCpEUg@mail.gmail.com/
Suggested-by: Eric Dumazet <[email protected]>
Fixes: d4d0c5b4d279 ("net: ethernet: cortina: Handle large frames")
Signed-off-by: Linus Walleij <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-11-08 16:20:43 +01:00
..
appletalk
arcnet arcnet: restoring support for multiple Sohard Arcnet cards 2023-12-13 18:18:12 +01:00
bonding net: bonding: correctly annotate RCU in bond_should_notify_peers() 2024-08-19 05:33:41 +02:00
caif drivers: net: Fix Kconfig indentation, continued 2024-11-08 16:20:35 +01:00
can can: kvaser_usb: fix return value for hif_usb_send_regout 2024-07-27 10:38:31 +02:00
dsa net: dsa: vsc73xx: fix possible subblocks range of CAPT block 2024-09-12 11:03:53 +02:00
ethernet net: ethernet: cortina: Drop TSO support 2024-11-08 16:20:43 +01:00
fddi
fjes fjes: fix memleaks in fjes_hw_setup 2024-02-23 08:24:51 +01:00
hamradio
hippi
hyperv hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed 2024-03-15 10:48:18 -04:00
ieee802154 net: ieee802154: mcr20a: Use IRQF_NO_AUTOEN flag in request_irq() 2024-11-08 16:20:36 +01:00
ipvlan ipvlan: Dont Use skb->sk in ipvlan_process_v{4,6}_outbound 2024-06-16 13:28:48 +02:00
netdevsim
phy net: phy: vitesse: repair vsc73xx autonegotiation 2024-11-08 16:20:24 +01:00
plip
ppp ppp: reject claimed-as-LCP but actually malformed packets 2024-07-18 11:40:53 +02:00
slip
team team: Fix use-after-free when an option instance allocation fails 2023-12-20 15:41:25 +01:00
usb usbnet: ipheth: fix carrier detection in modes 1 and 4 2024-11-08 16:20:24 +01:00
vmxnet3
wan net: remove unneeded break 2024-02-23 08:25:04 +01:00
wimax
wireless wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_cmd_802_11_scan_ext() 2024-11-08 16:20:38 +01:00
xen-netback xen-netback: properly sync TX responses 2024-02-23 08:25:11 +01:00
dummy.c
eql.c
geneve.c geneve: fix header validation in geneve[6]_xmit_skb 2024-05-02 16:18:28 +02:00
gtp.c gtp: fix a potential NULL pointer dereference 2024-09-04 13:15:03 +02:00
ifb.c
Kconfig drivers: net: Fix Kconfig indentation, continued 2024-11-08 16:20:35 +01:00
LICENSE.SRC
loopback.c
macsec.c net: add DEV_STATS_READ() helper 2023-11-20 10:30:10 +01:00
macvlan.c macvlan: Don't propagate promisc change to lower dev in passthru 2023-11-28 16:50:17 +00:00
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c net: netconsole: Disable target before netpoll cleanup 2024-08-19 05:33:35 +02:00
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c tap: add missing verification for short frame 2024-07-27 10:38:33 +02:00
thunderbolt.c net: thunderbolt: Fix TCPv6 GSO checksum calculation 2023-10-10 21:46:41 +02:00
tun.c tun: add missing verification for short frame 2024-07-27 10:38:33 +02:00
veth.c
virtio_net.c virtio_net: Fix napi_skb_cache_put warning 2024-09-12 11:03:50 +02:00
vrf.c
vsockmon.c
vxlan.c vxlan: Fix regression when dropping packets due to invalid src addresses 2024-07-05 09:08:11 +02:00
xen-netfront.c