ep93xx_eth: don't report RX FIFO overrun errors
Subsystems (2)
PATCH 3/3 ep93xx_eth: don't report RX FIFO overrun errors
Flooding the console with an RX FIFO overrun error for every single dropped packet isn't very sensible. The hardware is very underpowered according to today's standards, and RX FIFO overrun errors can be triggered quite easily, so don't report them at all.
drivers/net/arm/ep93xx_eth.c +3 -2
@@ -230,8 +230,9 @@ static int ep93xx_rx(struct net_device * " %.8x %.8x\n", rstat0, rstat1);if (!(rstat0 &RSTAT0_RWE )) { -printk (KERN_NOTICE "ep93xx_rx: receive error " -" %.8x %.8x\n" , rstat0, rstat1); +if (!(rstat0 &RSTAT_OE )) +printk (KERN_NOTICE "ep93xx_rx: receive error " +" %.8x %.8x\n" , rstat0, rstat1); ep->stats.rx_errors++;if (rstat0 &RSTAT0_OE )
Quoted 13 lines · Lennert Buytenhek
Flooding the console with an RX FIFO overrun error for every single dropped packet isn't very sensible. The hardware is very underpowered according to today's standards, and RX FIFO overrun errors can be triggered quite easily, so don't report them at all.
Signed-off-by Lennert Buytenhek <[email protected]>Index:
linux-2.6.19-rc3/drivers/net/arm/ep93xx_eth.c
===================================================================drivers/net/arm/ep93xx_eth.c +0
-0@@ -230,8 +230,9 @@ static int ep93xx_rx(struct net_device * " %.8x %.8x\n", rstat0, rstat1);
drivers/net/arm/ep93xx_eth.c static int ep93xx_rx(struct net_device * · line 238
Quoted 10 lines
drivers/net/arm/ep93xx_eth.c +3
-2if (!(rstat0 &RSTAT0_RWE )) { -printk (KERN_NOTICE "ep93xx_rx: receive error " -" %.8x %.8x\n" , rstat0, rstat1); +if (!(rstat0 &RSTAT_OE )) +printk (KERN_NOTICE "ep93xx_rx: receive error " +" %.8x %.8x\n" , rstat0, rstat1); ep->stats.rx_errors++;if (rstat0 &RSTAT0_OE )
i got a compile error: please s/RSTAT_OE/RSTAT0_OE/ in this patch. Also, is it possible for any other error bits to be set at the same time as OE? such bits would not be printed to the log in this case.
ray
Quoted 14 lines · Ray Lehtiniemi
Quoted 14 lines
Index:
linux-2.6.19-rc3/drivers/net/arm/ep93xx_eth.c
===================================================================drivers/net/arm/ep93xx_eth.c +3
-2@@ -230,8 +230,9 @@ static int ep93xx_rx(struct net_device * " %.8x %.8x\n", rstat0, rstat1);if (!(rstat0 &RSTAT0_RWE )) { -printk (KERN_NOTICE "ep93xx_rx: receive error " -" %.8x %.8x\n" , rstat0, rstat1); +if (!(rstat0 &RSTAT_OE )) +printk (KERN_NOTICE "ep93xx_rx: receive error " +" %.8x %.8x\n" , rstat0, rstat1);
Quoted 4 lines
drivers/net/arm/ep93xx_eth.c static int ep93xx_rx(struct net_device * · line 238
Quoted 2 lines
drivers/net/arm/ep93xx_eth.c +0
-0ep->stats.rx_errors++;if (rstat0 &RSTAT0_OE )i got a compile error: please s/RSTAT_OE/RSTAT0_OE/ in this patch.
Whoops, I thought I sent the right one. :(
Quoted 2 lines
Also, is it possible for any other error bits to be set at the same time as OE? such bits would not be printed to the log in this case.
Not sure, but arguably, this wouldn't be very interesting. Actually, now I'm wondering whether we should just remove the printk altogether.
cheers,
Lennert
Quoted 5 lines · Lennert Buytenhek
Quoted 2 lines
Also, is it possible for any other error bits to be set at the same time as OE? such bits would not be printed to the log in this case.
Not sure, but arguably, this wouldn't be very interesting. Actually, now I'm wondering whether we should just remove the printk altogether.
i don't see why we need a printk... the error counters _should_ be sufficient.
ray