lkml.org 
[lkml]   [1999]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] Re: via-rhine and missing /proc/net/dev receive bytes
    On 11-Apr-99 Philip Blundell wrote:
    >>Well, the weird part is that the transmitting bytes are working properly...
    >
    > Yeah. I just looked at the driver and it does indeed implement the tx byte
    > counter but not the rx one. Bizarre.
    >
    > To make it work you just need to add something along the lines of `np->
    > stats.rx_bytes += skb->len;' at about line 1053, I imagine.
    >
    > p.

    You are correct. Here's the patch. I've cc'd Donald Becker so he can put the
    changes in his code, too.

    -Dave

    --- linux/drivers/net/via-rhine.c.orig Sun Apr 11 16:16:17 1999
    +++ linux/drivers/net/via-rhine.c Sun Apr 11 16:15:45 1999
    @@ -1053,6 +1053,7 @@
    skb->protocol = eth_type_trans(skb, dev);
    netif_rx(skb);
    dev->last_rx = jiffies;
    + np->stats.rx_bytes += skb->len;
    np->stats.rx_packets++;
    }
    entry = (++np->cur_rx) % RX_RING_SIZE;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:51    [W:4.100 / U:0.496 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site