net: usb: lan78xx: Add .ndo_features_check
authorJames Hughes <james.hughes@raspberrypi.org>
Mon, 20 Jan 2020 11:12:40 +0000 (11:12 +0000)
committerPhil Elwell <phil@raspberrypi.org>
Wed, 22 Jan 2020 09:35:37 +0000 (09:35 +0000)
commite3ded470b8eaad5296b2c88fd96e11549a8d841b
tree5f081eb77eac0c39fcca7808a5896368722dc47d
parentc67cfec841a546d7b99aec2e5bd29cdb2184f61c
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