aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_teql.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/net/sched/sch_teql.c b/net/sched/sch_teql.c
index 3b6418297231..428a5ef5b944 100644
--- a/net/sched/sch_teql.c
+++ b/net/sched/sch_teql.c
@@ -58,7 +58,6 @@ struct teql_master
58 struct net_device *dev; 58 struct net_device *dev;
59 struct Qdisc *slaves; 59 struct Qdisc *slaves;
60 struct list_head master_list; 60 struct list_head master_list;
61 struct net_device_stats stats;
62}; 61};
63 62
64struct teql_sched_data 63struct teql_sched_data
@@ -272,6 +271,7 @@ static inline int teql_resolve(struct sk_buff *skb,
272static int teql_master_xmit(struct sk_buff *skb, struct net_device *dev) 271static int teql_master_xmit(struct sk_buff *skb, struct net_device *dev)
273{ 272{
274 struct teql_master *master = netdev_priv(dev); 273 struct teql_master *master = netdev_priv(dev);
274 struct netdev_queue *txq = netdev_get_tx_queue(dev, 0);
275 struct Qdisc *start, *q; 275 struct Qdisc *start, *q;
276 int busy; 276 int busy;
277 int nores; 277 int nores;
@@ -311,8 +311,8 @@ restart:
311 __netif_tx_unlock(slave_txq); 311 __netif_tx_unlock(slave_txq);
312 master->slaves = NEXT_SLAVE(q); 312 master->slaves = NEXT_SLAVE(q);
313 netif_wake_queue(dev); 313 netif_wake_queue(dev);
314 master->stats.tx_packets++; 314 txq->tx_packets++;
315 master->stats.tx_bytes += length; 315 txq->tx_bytes += length;
316 return 0; 316 return 0;
317 } 317 }
318 __netif_tx_unlock(slave_txq); 318 __netif_tx_unlock(slave_txq);
@@ -339,10 +339,10 @@ restart:
339 netif_stop_queue(dev); 339 netif_stop_queue(dev);
340 return 1; 340 return 1;
341 } 341 }
342 master->stats.tx_errors++; 342 dev->stats.tx_errors++;
343 343
344drop: 344drop:
345 master->stats.tx_dropped++; 345 txq->tx_dropped++;
346 dev_kfree_skb(skb); 346 dev_kfree_skb(skb);
347 return 0; 347 return 0;
348} 348}
@@ -395,12 +395,6 @@ static int teql_master_close(struct net_device *dev)
395 return 0; 395 return 0;
396} 396}
397 397
398static struct net_device_stats *teql_master_stats(struct net_device *dev)
399{
400 struct teql_master *m = netdev_priv(dev);
401 return &m->stats;
402}
403
404static int teql_master_mtu(struct net_device *dev, int new_mtu) 398static int teql_master_mtu(struct net_device *dev, int new_mtu)
405{ 399{
406 struct teql_master *m = netdev_priv(dev); 400 struct teql_master *m = netdev_priv(dev);
@@ -425,7 +419,6 @@ static const struct net_device_ops teql_netdev_ops = {
425 .ndo_open = teql_master_open, 419 .ndo_open = teql_master_open,
426 .ndo_stop = teql_master_close, 420 .ndo_stop = teql_master_close,
427 .ndo_start_xmit = teql_master_xmit, 421 .ndo_start_xmit = teql_master_xmit,
428 .ndo_get_stats = teql_master_stats,
429 .ndo_change_mtu = teql_master_mtu, 422 .ndo_change_mtu = teql_master_mtu,
430}; 423};
431 424