]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
net/: Kill now superfluous ->last_rx stores.
authorDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2008 06:01:07 +0000 (22:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2008 06:01:07 +0000 (22:01 -0800)
The generic packet receive code takes care of setting
netdev->last_rx when necessary, for the sake of the
bonding ARP monitor.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c
net/8021q/vlan_dev.c
net/bluetooth/bnep/core.c
net/dsa/tag_dsa.c
net/dsa/tag_edsa.c
net/dsa/tag_trailer.c
net/ieee80211/ieee80211_rx.c

index 916061f681b6484a95af7900311977fca7752ebc..118adef476c3a57203434d81f81714645283c121 100644 (file)
@@ -24,7 +24,6 @@ int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp,
                 * due to congestion. */
                return NET_RX_SUCCESS;
        }
-       skb->dev->last_rx = jiffies;
        skb->vlan_tci = 0;
 
        stats = &skb->dev->stats;
index c269fcbd13d508547f8975f0592016995e12ad28..e4bf39f87032af3eea40659a1075b74e4017585f 100644 (file)
@@ -163,8 +163,6 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev,
                goto err_unlock;
        }
 
-       skb->dev->last_rx = jiffies;
-
        stats = &skb->dev->stats;
        stats->rx_packets++;
        stats->rx_bytes += skb->len;
index 80ba30cf4b682556252587e2ed57468f6663efa0..7a4d5303b4feec4c4c27bb8dde1fe1862bee5141 100644 (file)
@@ -311,7 +311,6 @@ static inline int bnep_rx_frame(struct bnep_session *s, struct sk_buff *skb)
        struct sk_buff *nskb;
        u8 type;
 
-       dev->last_rx = jiffies;
        s->stats.rx_bytes += skb->len;
 
        type = *(u8 *) skb->data; skb_pull(skb, 1);
index bdc0510b53b70c80c42c270cb2f61bf01f4f6941..ff55823a6534ab668a6251231441670cd9edfae6 100644 (file)
@@ -161,7 +161,6 @@ static int dsa_rcv(struct sk_buff *skb, struct net_device *dev,
        skb_push(skb, ETH_HLEN);
        skb->protocol = eth_type_trans(skb, skb->dev);
 
-       skb->dev->last_rx = jiffies;
        skb->dev->stats.rx_packets++;
        skb->dev->stats.rx_bytes += skb->len;
 
index f985ea993843bcf253c3c1e409cde1f873b6a3f6..24b1c76fa7a493def1ac7b074ccdb5d1ee67ab8c 100644 (file)
@@ -180,7 +180,6 @@ static int edsa_rcv(struct sk_buff *skb, struct net_device *dev,
        skb_push(skb, ETH_HLEN);
        skb->protocol = eth_type_trans(skb, skb->dev);
 
-       skb->dev->last_rx = jiffies;
        skb->dev->stats.rx_packets++;
        skb->dev->stats.rx_bytes += skb->len;
 
index d3117764b2c2123f3130f7ae4386089750556fef..3bfd2e55877a45c4057fda49f70d334d763c58f3 100644 (file)
@@ -97,7 +97,6 @@ static int trailer_rcv(struct sk_buff *skb, struct net_device *dev,
        skb_push(skb, ETH_HLEN);
        skb->protocol = eth_type_trans(skb, skb->dev);
 
-       skb->dev->last_rx = jiffies;
        skb->dev->stats.rx_packets++;
        skb->dev->stats.rx_bytes += skb->len;
 
index a91ef8475467f072d7942c11d21af7741502e974..3dd58b594f6ab5533605919a94420f9aef7d4d38 100644 (file)
@@ -533,8 +533,6 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb,
        }
 #endif
 
-       dev->last_rx = jiffies;
-
 #ifdef NOT_YET
        if ((ieee->iw_mode == IW_MODE_MASTER ||
             ieee->iw_mode == IW_MODE_REPEAT) && !from_assoc_ap) {