diff options
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r-- | net/sched/sch_generic.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index ea5a05b172c4..51e64acd5098 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -46,6 +46,7 @@ void qdisc_lock_tree(struct net_device *dev) | |||
46 | spin_lock_bh(&dev->queue_lock); | 46 | spin_lock_bh(&dev->queue_lock); |
47 | spin_lock(&dev->ingress_lock); | 47 | spin_lock(&dev->ingress_lock); |
48 | } | 48 | } |
49 | EXPORT_SYMBOL(qdisc_lock_tree); | ||
49 | 50 | ||
50 | void qdisc_unlock_tree(struct net_device *dev) | 51 | void qdisc_unlock_tree(struct net_device *dev) |
51 | __releases(dev->ingress_lock) | 52 | __releases(dev->ingress_lock) |
@@ -54,6 +55,7 @@ void qdisc_unlock_tree(struct net_device *dev) | |||
54 | spin_unlock(&dev->ingress_lock); | 55 | spin_unlock(&dev->ingress_lock); |
55 | spin_unlock_bh(&dev->queue_lock); | 56 | spin_unlock_bh(&dev->queue_lock); |
56 | } | 57 | } |
58 | EXPORT_SYMBOL(qdisc_unlock_tree); | ||
57 | 59 | ||
58 | static inline int qdisc_qlen(struct Qdisc *q) | 60 | static inline int qdisc_qlen(struct Qdisc *q) |
59 | { | 61 | { |
@@ -253,6 +255,7 @@ void netif_carrier_on(struct net_device *dev) | |||
253 | __netdev_watchdog_up(dev); | 255 | __netdev_watchdog_up(dev); |
254 | } | 256 | } |
255 | } | 257 | } |
258 | EXPORT_SYMBOL(netif_carrier_on); | ||
256 | 259 | ||
257 | /** | 260 | /** |
258 | * netif_carrier_off - clear carrier | 261 | * netif_carrier_off - clear carrier |
@@ -265,6 +268,7 @@ void netif_carrier_off(struct net_device *dev) | |||
265 | if (!test_and_set_bit(__LINK_STATE_NOCARRIER, &dev->state)) | 268 | if (!test_and_set_bit(__LINK_STATE_NOCARRIER, &dev->state)) |
266 | linkwatch_fire_event(dev); | 269 | linkwatch_fire_event(dev); |
267 | } | 270 | } |
271 | EXPORT_SYMBOL(netif_carrier_off); | ||
268 | 272 | ||
269 | /* "NOOP" scheduler: the best scheduler, recommended for all interfaces | 273 | /* "NOOP" scheduler: the best scheduler, recommended for all interfaces |
270 | under all circumstances. It is difficult to invent anything faster or | 274 | under all circumstances. It is difficult to invent anything faster or |
@@ -307,6 +311,7 @@ struct Qdisc noop_qdisc = { | |||
307 | .ops = &noop_qdisc_ops, | 311 | .ops = &noop_qdisc_ops, |
308 | .list = LIST_HEAD_INIT(noop_qdisc.list), | 312 | .list = LIST_HEAD_INIT(noop_qdisc.list), |
309 | }; | 313 | }; |
314 | EXPORT_SYMBOL(noop_qdisc); | ||
310 | 315 | ||
311 | static struct Qdisc_ops noqueue_qdisc_ops __read_mostly = { | 316 | static struct Qdisc_ops noqueue_qdisc_ops __read_mostly = { |
312 | .id = "noqueue", | 317 | .id = "noqueue", |
@@ -471,6 +476,7 @@ struct Qdisc * qdisc_create_dflt(struct net_device *dev, struct Qdisc_ops *ops, | |||
471 | errout: | 476 | errout: |
472 | return NULL; | 477 | return NULL; |
473 | } | 478 | } |
479 | EXPORT_SYMBOL(qdisc_create_dflt); | ||
474 | 480 | ||
475 | /* Under dev->queue_lock and BH! */ | 481 | /* Under dev->queue_lock and BH! */ |
476 | 482 | ||
@@ -481,6 +487,7 @@ void qdisc_reset(struct Qdisc *qdisc) | |||
481 | if (ops->reset) | 487 | if (ops->reset) |
482 | ops->reset(qdisc); | 488 | ops->reset(qdisc); |
483 | } | 489 | } |
490 | EXPORT_SYMBOL(qdisc_reset); | ||
484 | 491 | ||
485 | /* this is the rcu callback function to clean up a qdisc when there | 492 | /* this is the rcu callback function to clean up a qdisc when there |
486 | * are no further references to it */ | 493 | * are no further references to it */ |
@@ -512,6 +519,7 @@ void qdisc_destroy(struct Qdisc *qdisc) | |||
512 | dev_put(qdisc->dev); | 519 | dev_put(qdisc->dev); |
513 | call_rcu(&qdisc->q_rcu, __qdisc_destroy); | 520 | call_rcu(&qdisc->q_rcu, __qdisc_destroy); |
514 | } | 521 | } |
522 | EXPORT_SYMBOL(qdisc_destroy); | ||
515 | 523 | ||
516 | void dev_activate(struct net_device *dev) | 524 | void dev_activate(struct net_device *dev) |
517 | { | 525 | { |
@@ -626,12 +634,3 @@ void dev_shutdown(struct net_device *dev) | |||
626 | BUG_TRAP(!timer_pending(&dev->watchdog_timer)); | 634 | BUG_TRAP(!timer_pending(&dev->watchdog_timer)); |
627 | qdisc_unlock_tree(dev); | 635 | qdisc_unlock_tree(dev); |
628 | } | 636 | } |
629 | |||
630 | EXPORT_SYMBOL(netif_carrier_on); | ||
631 | EXPORT_SYMBOL(netif_carrier_off); | ||
632 | EXPORT_SYMBOL(noop_qdisc); | ||
633 | EXPORT_SYMBOL(qdisc_create_dflt); | ||
634 | EXPORT_SYMBOL(qdisc_destroy); | ||
635 | EXPORT_SYMBOL(qdisc_reset); | ||
636 | EXPORT_SYMBOL(qdisc_lock_tree); | ||
637 | EXPORT_SYMBOL(qdisc_unlock_tree); | ||