]> asedeno.scripts.mit.edu Git - linux.git/commit
net: usb: lan78xx: Add .ndo_features_check
authorJames Hughes <james.hughes@raspberrypi.org>
Mon, 20 Jan 2020 11:12:40 +0000 (11:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 09:46:51 +0000 (10:46 +0100)
commitce896476c65d72b4b99fa09c2f33436b4198f034
tree099ff5adc0120cccd947b6d087076ecb8cf24bda
parent5b2f1f3070b6447b76174ea8bfb7390dc6253ebd
net: usb: lan78xx: Add .ndo_features_check

As reported by Eric Dumazet, there are still some outstanding
cases where the driver does not handle TSO correctly when skb's
are over a certain size. Most cases have been fixed, this patch
should ensure that forwarded SKB's that are greater than
MAX_SINGLE_PACKET_SIZE - TX_OVERHEAD are software segmented
and handled correctly.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c