net: usb: lan78xx: Add .ndo_features_check
authorJames Hughes <james.hughes@raspberrypi.org>
Mon, 20 Jan 2020 11:12:40 +0000 (11:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 15:43:17 +0000 (16:43 +0100)
commitc74b3d128d57df60bd3ff746bf3f2025597b2d90
treeb2f8766df2f07c64ffb348661920296c864ea2cc
parentb4b0f1fc194614859486b4fd19bd5885a3c8818f
net: usb: lan78xx: Add .ndo_features_check

[ Upstream commit ce896476c65d72b4b99fa09c2f33436b4198f034 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/lan78xx.c