Skip to content

Commit

Permalink
ksz884x: fix mtu for VLAN
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Doug Kehn authored and David S. Miller committed Jan 13, 2012
1 parent ddecf0f commit 8363658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/micrel/ksz884x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8363658

Please sign in to comment.