r8152: support ndo_features_check
authorhayeswang <hayeswang@realtek.com>
Tue, 6 Jan 2015 09:41:58 +0000 (17:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2015 18:29:13 +0000 (13:29 -0500)
commita5e31255e02a0797259f210c3bb92c6326a98a9c
tree6b3d7dcb1c643376d7af160340aaafd770b69f3e
parent7ce67a38f799d1fb332f672b117efbadedaa5352
r8152: support ndo_features_check

Support ndo_features_check to avoid:
 - the transport offset is more than the hw limitation when using hw checksum.
 - the skb->len of a GSO packet is more than the limitation.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c