diff options
author | Doug Kehn <rdkehn@yahoo.com> | 2012-01-11 08:12:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-12 23:05:28 -0500 |
commit | 83636580ad99cffd85b07e75da7ad45ada0fd530 (patch) | |
tree | e5ce86104abbfb7e8c9da7edd7bd7fca3871b9e3 /drivers/net/ethernet/micrel/ksz884x.c | |
parent | ddecf0f4db44ef94847a62d6ecf74456b4dcc66f (diff) |
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>
Diffstat (limited to 'drivers/net/ethernet/micrel/ksz884x.c')
-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 6ed09a85f035..e52cd310ae76 100644 --- a/drivers/net/ethernet/micrel/ksz884x.c +++ b/drivers/net/ethernet/micrel/ksz884x.c | |||
@@ -746,7 +746,7 @@ | |||
746 | #define MAC_ADDR_ORDER(i) (ETH_ALEN - 1 - (i)) | 746 | #define MAC_ADDR_ORDER(i) (ETH_ALEN - 1 - (i)) |
747 | 747 | ||
748 | #define MAX_ETHERNET_BODY_SIZE 1500 | 748 | #define MAX_ETHERNET_BODY_SIZE 1500 |
749 | #define ETHERNET_HEADER_SIZE 14 | 749 | #define ETHERNET_HEADER_SIZE (14 + VLAN_HLEN) |
750 | 750 | ||
751 | #define MAX_ETHERNET_PACKET_SIZE \ | 751 | #define MAX_ETHERNET_PACKET_SIZE \ |
752 | (MAX_ETHERNET_BODY_SIZE + ETHERNET_HEADER_SIZE) | 752 | (MAX_ETHERNET_BODY_SIZE + ETHERNET_HEADER_SIZE) |