diff --git a/drivers/net/netx-eth.c b/drivers/net/netx-eth.c index 5267e031daa0b3ab27d3d1dde092cb2fdc8e6159..78d34af13a1ca8c59817a3c203b77e715ae6399d 100644 --- a/drivers/net/netx-eth.c +++ b/drivers/net/netx-eth.c @@ -169,8 +169,8 @@ static void netx_eth_receive(struct net_device *ndev) ndev->last_rx = jiffies; skb->protocol = eth_type_trans(skb, ndev); netif_rx(skb); - dev->stats.rx_packets++; - dev->stats.rx_bytes += len; + ndev->stats.rx_packets++; + ndev->stats.rx_bytes += len; } static irqreturn_t