Explorar el Código

via-velocity : update receive packets statistics.

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

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Tested-by: Jon Nelson <jnelson@jamponi.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
françois romieu hace 14 años
padre
commit
3cb7a7986a
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      drivers/net/via-velocity.c

+ 1 - 0
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;
 }