Au1000 ethernet patch
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
@@ -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
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,vretrieving revision 1.2.2.8
diff -u -r1.2.2.8au1000_eth.hau1000_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
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
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 constantETH_ZLENfor this purpose.
Great, thanks. I'll make the correction.
Pete