diff options
author | David S. Miller <davem@davemloft.net> | 2008-11-04 00:11:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-04 00:11:17 -0500 |
commit | babcda74e9d96bb58fd9c6c5112dbdbff169e695 (patch) | |
tree | fcbe5e70f1fff01ad49504171e964c387a5ad7f8 /drivers/net/tulip | |
parent | ab2910921064b657610a3b501358a305e13087ea (diff) |
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>
Diffstat (limited to 'drivers/net/tulip')
-rw-r--r-- | drivers/net/tulip/de2104x.c | 1 | ||||
-rw-r--r-- | drivers/net/tulip/de4x5.c | 1 | ||||
-rw-r--r-- | drivers/net/tulip/dmfe.c | 1 | ||||
-rw-r--r-- | drivers/net/tulip/interrupt.c | 2 | ||||
-rw-r--r-- | drivers/net/tulip/uli526x.c | 1 | ||||
-rw-r--r-- | drivers/net/tulip/winbond-840.c | 1 | ||||
-rw-r--r-- | drivers/net/tulip/xircom_cb.c | 1 |
7 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index 08076182df7c..e23a5084c6ca 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c | |||
@@ -459,7 +459,6 @@ static void de_rx (struct de_private *de) | |||
459 | 459 | ||
460 | de->net_stats.rx_packets++; | 460 | de->net_stats.rx_packets++; |
461 | de->net_stats.rx_bytes += skb->len; | 461 | de->net_stats.rx_bytes += skb->len; |
462 | de->dev->last_rx = jiffies; | ||
463 | rc = netif_rx (skb); | 462 | rc = netif_rx (skb); |
464 | if (rc == NET_RX_DROP) | 463 | if (rc == NET_RX_DROP) |
465 | drop = 1; | 464 | drop = 1; |
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c index 1e7d5e29a5ae..f8a45253eaf8 100644 --- a/drivers/net/tulip/de4x5.c +++ b/drivers/net/tulip/de4x5.c | |||
@@ -1646,7 +1646,6 @@ de4x5_rx(struct net_device *dev) | |||
1646 | netif_rx(skb); | 1646 | netif_rx(skb); |
1647 | 1647 | ||
1648 | /* Update stats */ | 1648 | /* Update stats */ |
1649 | dev->last_rx = jiffies; | ||
1650 | lp->stats.rx_packets++; | 1649 | lp->stats.rx_packets++; |
1651 | lp->stats.rx_bytes += pkt_len; | 1650 | lp->stats.rx_bytes += pkt_len; |
1652 | } | 1651 | } |
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c index 0ec3281529f9..28a5c51b43a0 100644 --- a/drivers/net/tulip/dmfe.c +++ b/drivers/net/tulip/dmfe.c | |||
@@ -1008,7 +1008,6 @@ static void dmfe_rx_packet(struct DEVICE *dev, struct dmfe_board_info * db) | |||
1008 | 1008 | ||
1009 | skb->protocol = eth_type_trans(skb, dev); | 1009 | skb->protocol = eth_type_trans(skb, dev); |
1010 | netif_rx(skb); | 1010 | netif_rx(skb); |
1011 | dev->last_rx = jiffies; | ||
1012 | db->stats.rx_packets++; | 1011 | db->stats.rx_packets++; |
1013 | db->stats.rx_bytes += rxlen; | 1012 | db->stats.rx_bytes += rxlen; |
1014 | } | 1013 | } |
diff --git a/drivers/net/tulip/interrupt.c b/drivers/net/tulip/interrupt.c index c6bad987d63e..739d610d18c5 100644 --- a/drivers/net/tulip/interrupt.c +++ b/drivers/net/tulip/interrupt.c | |||
@@ -231,7 +231,6 @@ int tulip_poll(struct napi_struct *napi, int budget) | |||
231 | 231 | ||
232 | netif_receive_skb(skb); | 232 | netif_receive_skb(skb); |
233 | 233 | ||
234 | dev->last_rx = jiffies; | ||
235 | tp->stats.rx_packets++; | 234 | tp->stats.rx_packets++; |
236 | tp->stats.rx_bytes += pkt_len; | 235 | tp->stats.rx_bytes += pkt_len; |
237 | } | 236 | } |
@@ -444,7 +443,6 @@ static int tulip_rx(struct net_device *dev) | |||
444 | 443 | ||
445 | netif_rx(skb); | 444 | netif_rx(skb); |
446 | 445 | ||
447 | dev->last_rx = jiffies; | ||
448 | tp->stats.rx_packets++; | 446 | tp->stats.rx_packets++; |
449 | tp->stats.rx_bytes += pkt_len; | 447 | tp->stats.rx_bytes += pkt_len; |
450 | } | 448 | } |
diff --git a/drivers/net/tulip/uli526x.c b/drivers/net/tulip/uli526x.c index 298649a236cb..35c57f6e630b 100644 --- a/drivers/net/tulip/uli526x.c +++ b/drivers/net/tulip/uli526x.c | |||
@@ -854,7 +854,6 @@ static void uli526x_rx_packet(struct net_device *dev, struct uli526x_board_info | |||
854 | 854 | ||
855 | skb->protocol = eth_type_trans(skb, dev); | 855 | skb->protocol = eth_type_trans(skb, dev); |
856 | netif_rx(skb); | 856 | netif_rx(skb); |
857 | dev->last_rx = jiffies; | ||
858 | db->stats.rx_packets++; | 857 | db->stats.rx_packets++; |
859 | db->stats.rx_bytes += rxlen; | 858 | db->stats.rx_bytes += rxlen; |
860 | 859 | ||
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c index e4cb408a70fe..022d99af8646 100644 --- a/drivers/net/tulip/winbond-840.c +++ b/drivers/net/tulip/winbond-840.c | |||
@@ -1253,7 +1253,6 @@ static int netdev_rx(struct net_device *dev) | |||
1253 | #endif | 1253 | #endif |
1254 | skb->protocol = eth_type_trans(skb, dev); | 1254 | skb->protocol = eth_type_trans(skb, dev); |
1255 | netif_rx(skb); | 1255 | netif_rx(skb); |
1256 | dev->last_rx = jiffies; | ||
1257 | np->stats.rx_packets++; | 1256 | np->stats.rx_packets++; |
1258 | np->stats.rx_bytes += pkt_len; | 1257 | np->stats.rx_bytes += pkt_len; |
1259 | } | 1258 | } |
diff --git a/drivers/net/tulip/xircom_cb.c b/drivers/net/tulip/xircom_cb.c index 3c0b96b0e925..13c8703ecb9f 100644 --- a/drivers/net/tulip/xircom_cb.c +++ b/drivers/net/tulip/xircom_cb.c | |||
@@ -1201,7 +1201,6 @@ static void investigate_read_descriptor(struct net_device *dev,struct xircom_pri | |||
1201 | skb_put(skb, pkt_len); | 1201 | skb_put(skb, pkt_len); |
1202 | skb->protocol = eth_type_trans(skb, dev); | 1202 | skb->protocol = eth_type_trans(skb, dev); |
1203 | netif_rx(skb); | 1203 | netif_rx(skb); |
1204 | dev->last_rx = jiffies; | ||
1205 | card->stats.rx_packets++; | 1204 | card->stats.rx_packets++; |
1206 | card->stats.rx_bytes += pkt_len; | 1205 | card->stats.rx_bytes += pkt_len; |
1207 | 1206 | ||