Skip to contentSkip to conversation

Au1000 ethernet patch

PATCH Hartvig Ekner 3 participants 4 messages Mar 28, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

The following patch fixes an error where ethernet minimum packets are 4 bytes too long. This caused certain devices not to respond to ARP requests (which is a bug on their side as well, but.....).

/Hartvig

Index: au1000_eth.h
===================================================================
RCS file: /home/cvs/linux/drivers/net/au1000_eth.h,v retrieving revision 1.2.2.8

au1000_eth.h +1 -1
diff -u -r1.2.2.8 au1000_eth.h
@@ -36,7 +36,7 @@
 #define MAX_BUF_SIZE 2048
 
 #define ETH_TX_TIMEOUT HZ/4
-#define MAC_MIN_PKT_SIZE 64
+#define MAC_MIN_PKT_SIZE 60
 
 #if defined(CONFIG_MIPS_PB1000) || defined(CONFIG_MIPS_PB1500) || defined(CONFIG_MIPS_PB1100) || defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) || defined(CONFIG_MIPS_DB1500)
 #define PHY_ADDRESS              0
#1 lore raw
Quoted 2 lines · Hartvig Ekner

The following patch fixes an error where ethernet minimum packets are 4 bytes too long. This caused certain devices not to respond to ARP requests (which is a bug on their side as well, but.....).

Thanks, I'll apply it later tonight.

Pete

Quoted 22 lines

/Hartvig

______________________________________________________________________

Index: au1000_eth.h
===================================================================
RCS file: /home/cvs/linux/drivers/net/au1000_eth.h,v retrieving revision 1.2.2.8
diff -u -r1.2.2.8 au1000_eth.h

au1000_eth.h +1 -1
@@ -36,7 +36,7 @@
 #define MAX_BUF_SIZE 2048
 
 #define ETH_TX_TIMEOUT HZ/4
-#define MAC_MIN_PKT_SIZE 64
+#define MAC_MIN_PKT_SIZE 60
 
 #if defined(CONFIG_MIPS_PB1000) || defined(CONFIG_MIPS_PB1500) || defined(CONFIG_MIPS_PB1100) || defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100) || defined(CONFIG_MIPS_DB1500)
 #define PHY_ADDRESS              0
#2 lore raw
Quoted 6 lines · Pete Popov
Quoted 2 lines · Hartvig Ekner

The following patch fixes an error where ethernet minimum packets are 4 bytes too long. This caused certain devices not to respond to ARP requests (which is a bug on their side as well, but.....).

Thanks, I'll apply it later tonight.

<asm/if_ether.h> already defines the constant ETH_ZLEN for this purpose.

Ralf

#3 lore raw
Quoted 10 lines · Ralf Baechle
Quoted 6 lines · Pete Popov
Quoted 2 lines · Hartvig Ekner

The following patch fixes an error where ethernet minimum packets are 4 bytes too long. This caused certain devices not to respond to ARP requests (which is a bug on their side as well, but.....).

Thanks, I'll apply it later tonight.

<asm/if_ether.h> already defines the constant ETH_ZLEN for this purpose.

Great, thanks. I'll make the correction.

Pete