Fwd: [parisc-linux-cvs] linux-2.4 varenet
Thibaut VARÈNE
varenet@esiee.fr
Tue, 2 Sep 2003 15:10:25 +0200
Début du message réexpédié :
> De: varenet@parisc-linux.org (Thibaut Varene)
> Date: Mar 2 sep 2003 15:08:25 Europe/Paris
> À: parisc-linux-cvs@lists.parisc-linux.org
> Objet: [parisc-linux-cvs] linux-2.4 varenet
> Répondre à: parisc-linux@lists.parisc-linux.org
>
> CVSROOT: /var/cvs
> Module name: linux-2.4
> Changes by: varenet 03/09/02 07:08:24
>
> Modified files:
> . : Makefile
>
> Log message:
> bump -pa number (change to led.c)
>
here's the diff
Index: linux/arch/parisc/kernel/led.c
===================================================================
RCS file: /var/cvs/linux/arch/parisc/kernel/led.c,v
retrieving revision 1.28
diff -u -p -u -r1.28 led.c
--- linux/arch/parisc/kernel/led.c 29 Sep 2002 15:49:20 -0000 1.28
+++ linux/arch/parisc/kernel/led.c 17 Jan 2003 16:02:56 -0000
@@ -365,10 +365,12 @@ static void led_get_net_stats(int addval
* for reading should be OK */
read_lock(&dev_base_lock);
for (dev = dev_base; dev != NULL; dev = dev->next) {
- if (dev->get_stats) {
- stats = dev->get_stats(dev);
- rx_total += stats->rx_packets;
- tx_total += stats->tx_packets;
+ if (!(dev->flags & IFF_LOOPBACK)) {
+ if (dev->get_stats) {
+ stats = dev->get_stats(dev);
+ rx_total += stats->rx_packets;
+ tx_total += stats->tx_packets;
+ }
}
}
read_unlock(&dev_base_lock);