asix: check packet size against mtu+ETH_HLEN instead of ETH_FRAME_LEN
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Mon, 7 Jun 2010 07:56:27 +0000 (00:56 -0700)
committerMatt Sealey <matt@genesi-usa.com>
Sat, 22 Jan 2011 05:20:01 +0000 (23:20 -0600)
commitccd966624c77d1fe00046b7fcae2b0fe1e7a5f7b
tree8188284f2c5e2cd7c13ea92ce897e888325ac5af
parent8452f6b61df8cb87fd5699ba50897eb945e84c74
asix: check packet size against mtu+ETH_HLEN instead of ETH_FRAME_LEN

Driver checks received packet is too large in asix_rx_fixup() and fails if it is. Problem is
that MTU might be set larger than 1500 and asix fails to work correctly with VLAN tagged
packets. The check should be 'dev->net->mtu + ETH_HLEN' instead.

Tested with AX88772.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix.c