]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jun 2010 07:56:27 +0000 (00:56 -0700)
commitd452e1fbd6c335ddcf0c807dff701b3ae8bc7b96
tree2306b6f10f51a14b815af079b35bcc5eadd003fb
parent27f89414ac4e5622a5a97ae5a1d47d92b3e90861
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