Commit 95f4b45b authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net: another last_rx round

Kill last_rx use in l2tp and two net drivers
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3e502e63
...@@ -1520,7 +1520,6 @@ int t4vf_ethrx_handler(struct sge_rspq *rspq, const __be64 *rsp, ...@@ -1520,7 +1520,6 @@ int t4vf_ethrx_handler(struct sge_rspq *rspq, const __be64 *rsp,
__skb_pull(skb, PKTSHIFT); __skb_pull(skb, PKTSHIFT);
skb->protocol = eth_type_trans(skb, rspq->netdev); skb->protocol = eth_type_trans(skb, rspq->netdev);
skb_record_rx_queue(skb, rspq->idx); skb_record_rx_queue(skb, rspq->idx);
skb->dev->last_rx = jiffies; /* XXX removed 2.6.29 */
pi = netdev_priv(skb->dev); pi = netdev_priv(skb->dev);
rxq->stats.pkts++; rxq->stats.pkts++;
......
...@@ -848,7 +848,6 @@ static int rxq_process(struct net_device *dev, int budget) ...@@ -848,7 +848,6 @@ static int rxq_process(struct net_device *dev, int budget)
skb->protocol = eth_type_trans(skb, dev); skb->protocol = eth_type_trans(skb, dev);
netif_receive_skb(skb); netif_receive_skb(skb);
} }
dev->last_rx = jiffies;
} }
/* Fill RX ring with skb's */ /* Fill RX ring with skb's */
rxq_refill(dev); rxq_refill(dev);
......
...@@ -144,7 +144,6 @@ static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb, ...@@ -144,7 +144,6 @@ static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb,
nf_reset(skb); nf_reset(skb);
if (dev_forward_skb(dev, skb) == NET_RX_SUCCESS) { if (dev_forward_skb(dev, skb) == NET_RX_SUCCESS) {
dev->last_rx = jiffies;
dev->stats.rx_packets++; dev->stats.rx_packets++;
dev->stats.rx_bytes += data_len; dev->stats.rx_bytes += data_len;
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment