ksz884x: fix mtu for VLAN
authorDoug Kehn <rdkehn@yahoo.com>
Wed, 11 Jan 2012 13:12:43 +0000 (13:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jan 2012 04:05:28 +0000 (20:05 -0800)
The Ethernet header does not account for the addition of a VLAN header.
Full size Ethernet frames containing VLAN header are not processed
because the frame is larger than the resulting hw mtu.

Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ksz884x.c

index 6ed09a85f03506ae7679e23ec5bc4425545cc5fd..e52cd310ae76147f0bbf54cc41f63da4e7f4013c 100644 (file)
 #define MAC_ADDR_ORDER(i)              (ETH_ALEN - 1 - (i))
 
 #define MAX_ETHERNET_BODY_SIZE         1500
-#define ETHERNET_HEADER_SIZE           14
+#define ETHERNET_HEADER_SIZE           (14 + VLAN_HLEN)
 
 #define MAX_ETHERNET_PACKET_SIZE       \
        (MAX_ETHERNET_BODY_SIZE + ETHERNET_HEADER_SIZE)