Skip to contentSkip to conversation

ksz884x: fix mtu for VLAN

PATCH Superseded Doug Kehn 2 participants 2 messages Jan 11, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Doug Kehn

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/ethernet/micrel/ksz884x.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/micrel/ksz884x.c +0 -0
index 6ed09a8..e52cd31 100644
@@ -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)

Signature · 1 line
1.7.4.1
maintainer
#1 lore raw

From: Doug Kehn <[email protected]>
Date: Wed, 11 Jan 2012 12:21:46 -0800 (PST)

Quoted 5 lines

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.

Your email client corrupted your patch making it unusable to us.

Send the patch to yourself, and try to apply the patch you receive. Only resubmit your patch again here once you are able to do that successfully.