drivers/net: Kill now superfluous ->last_rx stores.
The generic packet receive code takes care of setting netdev->last_rx when necessary, for the sake of the bonding ARP monitor. Drivers need not do it any more. Some cases had to be skipped over because the drivers were making use of the ->last_rx value themselves. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@ -459,7 +459,6 @@ static void de_rx (struct de_private *de)
|
||||
|
||||
de->net_stats.rx_packets++;
|
||||
de->net_stats.rx_bytes += skb->len;
|
||||
de->dev->last_rx = jiffies;
|
||||
rc = netif_rx (skb);
|
||||
if (rc == NET_RX_DROP)
|
||||
drop = 1;
|
||||
|
@ -1646,7 +1646,6 @@ de4x5_rx(struct net_device *dev)
|
||||
netif_rx(skb);
|
||||
|
||||
/* Update stats */
|
||||
dev->last_rx = jiffies;
|
||||
lp->stats.rx_packets++;
|
||||
lp->stats.rx_bytes += pkt_len;
|
||||
}
|
||||
|
@ -1008,7 +1008,6 @@ static void dmfe_rx_packet(struct DEVICE *dev, struct dmfe_board_info * db)
|
||||
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
netif_rx(skb);
|
||||
dev->last_rx = jiffies;
|
||||
db->stats.rx_packets++;
|
||||
db->stats.rx_bytes += rxlen;
|
||||
}
|
||||
|
@ -231,7 +231,6 @@ int tulip_poll(struct napi_struct *napi, int budget)
|
||||
|
||||
netif_receive_skb(skb);
|
||||
|
||||
dev->last_rx = jiffies;
|
||||
tp->stats.rx_packets++;
|
||||
tp->stats.rx_bytes += pkt_len;
|
||||
}
|
||||
@ -444,7 +443,6 @@ static int tulip_rx(struct net_device *dev)
|
||||
|
||||
netif_rx(skb);
|
||||
|
||||
dev->last_rx = jiffies;
|
||||
tp->stats.rx_packets++;
|
||||
tp->stats.rx_bytes += pkt_len;
|
||||
}
|
||||
|
@ -854,7 +854,6 @@ static void uli526x_rx_packet(struct net_device *dev, struct uli526x_board_info
|
||||
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
netif_rx(skb);
|
||||
dev->last_rx = jiffies;
|
||||
db->stats.rx_packets++;
|
||||
db->stats.rx_bytes += rxlen;
|
||||
|
||||
|
@ -1253,7 +1253,6 @@ static int netdev_rx(struct net_device *dev)
|
||||
#endif
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
netif_rx(skb);
|
||||
dev->last_rx = jiffies;
|
||||
np->stats.rx_packets++;
|
||||
np->stats.rx_bytes += pkt_len;
|
||||
}
|
||||
|
@ -1201,7 +1201,6 @@ static void investigate_read_descriptor(struct net_device *dev,struct xircom_pri
|
||||
skb_put(skb, pkt_len);
|
||||
skb->protocol = eth_type_trans(skb, dev);
|
||||
netif_rx(skb);
|
||||
dev->last_rx = jiffies;
|
||||
card->stats.rx_packets++;
|
||||
card->stats.rx_bytes += pkt_len;
|
||||
|
||||
|
Reference in New Issue
Block a user