From: Herbert Xu Date: Mon, 29 Jun 2009 16:52:26 +0000 (+0000) Subject: rndis_host: Use netdev stats structure X-Git-Tag: MMI-PSA29.97-13-9~27020^2~252 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=58e2e7d5913e7a2a6d87ef30d3b52e66b88e6e1d;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git rndis_host: Use netdev stats structure Now that netdev has its own stats structure we should use that instead. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c index 1bf243ef950e..2232232b7989 100644 --- a/drivers/net/usb/rndis_host.c +++ b/drivers/net/usb/rndis_host.c @@ -487,7 +487,7 @@ int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb) if (unlikely(hdr->msg_type != RNDIS_MSG_PACKET || skb->len < msg_len || (data_offset + data_len + 8) > msg_len)) { - dev->stats.rx_frame_errors++; + dev->net->stats.rx_frame_errors++; devdbg(dev, "bad rndis message %d/%d/%d/%d, len %d", le32_to_cpu(hdr->msg_type), msg_len, data_offset, data_len, skb->len);