gs_usb_set_timestamp(dev, skb, hf);
- netdev->stats.rx_packets++;
- netdev->stats.rx_bytes += hf->can_dlc;
+ stats->rx_packets++;
+ stats->rx_bytes += hf->can_dlc;
netif_rx(skb);
} else { /* echo_id == hf->echo_id */
skb = dev->can.echo_skb[hf->echo_id];
gs_usb_set_timestamp(dev, skb, hf);
- netdev->stats.tx_packets++;
- netdev->stats.tx_bytes += can_get_echo_skb(netdev, hf->echo_id,
- NULL);
+ stats->tx_packets++;
+ stats->tx_bytes += can_get_echo_skb(netdev, hf->echo_id,
+ NULL);
gs_free_tx_context(txc);