]> git.baikalelectronics.ru Git - kernel.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)
commit687db6210c2a774629927524ccc82442d47cb305
tree099ff5adc0120cccd947b6d087076ecb8cf24bda
parent0fb32973d9c1332b5d0ae769373d0fa790aa5a64
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