[PATCH 1/3] via-velocity : update receive packets statistics.

Subsystems: networking drivers, the rest

STALE5546d REVIEWED: 1 (0M)

1 review trailer.

2 messages, 2 authors, 2011-08-08 · open the first message on its own page

[PATCH 1/3] via-velocity : update receive packets statistics.

From: Francois Romieu <romieu@fr.zoreil.com>
Date: 2011-08-04 12:54:22

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=14076.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Tested-by: Jon Nelson <redacted>
---

 drivers/net/via-velocity.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index deb1eca..ae66696 100644
--- a/drivers/net/via-velocity.c
+++ b/drivers/net/via-velocity.c
@@ -2092,6 +2092,7 @@ static int velocity_receive_frame(struct velocity_info *vptr, int idx)
 	netif_rx(skb);
 
 	stats->rx_bytes += pkt_len;
+	stats->rx_packets++;
 
 	return 0;
 }
-- 
1.7.4.4

Re: [PATCH 1/3] via-velocity : update receive packets statistics.

From: David Miller <davem@davemloft.net>
Date: 2011-08-08 05:09:20

From: Francois Romieu <romieu@fr.zoreil.com>
Date: Thu, 4 Aug 2011 14:37:55 +0200
Addresses https://bugzilla.kernel.org/show_bug.cgi?id=14076.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Tested-by: Jon Nelson <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help