projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0c6ffb
)
asix: allow full size 8021Q frames to be received
author
Eric Dumazet
<
[email protected]
>
Mon, 28 May 2012 22:31:41 +0000
(22:31 +0000)
committer
David S. Miller
<
[email protected]
>
Tue, 29 May 2012 21:30:07 +0000
(17:30 -0400)
asix driver drops 8021Q full size frames because it doesn't take into
account VLAN header size.
Tested on AX88772 adapter.
Signed-off-by: Eric Dumazet <
[email protected]
>
CC: Greg Kroah-Hartman <
[email protected]
>
CC: Allan Chou <
[email protected]
>
CC: Trond Wuellner <
[email protected]
>
CC: Grant Grundler <
[email protected]
>
CC: Paul Stewart <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/usb/asix.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/asix.c
b/drivers/net/usb/asix.c
index 71e2b0523bc2db243704abab76ce8bd32a47d6d9..3ae80eccd0efd9802e5e997d53cd54946ef6d788 100644
(file)
--- a/
drivers/net/usb/asix.c
+++ b/
drivers/net/usb/asix.c
@@
-35,6
+35,7
@@
#include <linux/crc32.h>
#include <linux/usb/usbnet.h>
#include <linux/slab.h>
+#include <linux/if_vlan.h>
#define DRIVER_VERSION "22-Dec-2011"
#define DRIVER_NAME "asix"
@@
-321,7
+322,7
@@
static int asix_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
return 0;
}
- if ((size > dev->net->mtu + ETH_HLEN) ||
+ if ((size > dev->net->mtu + ETH_HLEN
+ VLAN_HLEN
) ||
(size + offset > skb->len)) {
netdev_err(dev->net, "asix_rx_fixup() Bad RX Length %d\n",
size);