diff options
author | Doug Kehn <rdkehn@yahoo.com> | 2012-01-11 13:12:43 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-12 20:05:28 -0800 |
commit | 83636580ad99cffd85b07e75da7ad45ada0fd530 (patch) | |
tree | e5ce86104abbfb7e8c9da7edd7bd7fca3871b9e3 | |
parent | ddecf0f4db44ef94847a62d6ecf74456b4dcc66f (diff) | |
download | op-kernel-dev-83636580ad99cffd85b07e75da7ad45ada0fd530.zip op-kernel-dev-83636580ad99cffd85b07e75da7ad45ada0fd530.tar.gz |
ksz884x: fix mtu for VLAN
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>
-rw-r--r-- | drivers/net/ethernet/micrel/ksz884x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c index 6ed09a8..e52cd31 100644 --- a/drivers/net/ethernet/micrel/ksz884x.c +++ b/drivers/net/ethernet/micrel/ksz884x.c @@ -746,7 +746,7 @@ #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) |