Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79521
b: refs/heads/master
c: 62e3ba1
h: refs/heads/master
i:
  79519: e412b47
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent 056e312 commit 4b71896
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f206351a50ea86250fabea96b9af8d8f8fc02603
refs/heads/master: 62e3ba1b558e5f393ef746880613fb8222e64d03
9 changes: 4 additions & 5 deletions trunk/net/sched/act_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ int tcf_register_action(struct tc_action_ops *act)
write_unlock(&act_mod_lock);
return 0;
}
EXPORT_SYMBOL(tcf_register_action);

int tcf_unregister_action(struct tc_action_ops *act)
{
Expand All @@ -281,6 +282,7 @@ int tcf_unregister_action(struct tc_action_ops *act)
write_unlock(&act_mod_lock);
return err;
}
EXPORT_SYMBOL(tcf_unregister_action);

/* lookup by name */
static struct tc_action_ops *tc_lookup_action_n(char *kind)
Expand Down Expand Up @@ -377,6 +379,7 @@ int tcf_action_exec(struct sk_buff *skb, struct tc_action *act,
exec_done:
return ret;
}
EXPORT_SYMBOL(tcf_action_exec);

void tcf_action_destroy(struct tc_action *act, int bind)
{
Expand Down Expand Up @@ -430,6 +433,7 @@ tcf_action_dump_1(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
nlmsg_trim(skb, b);
return -1;
}
EXPORT_SYMBOL(tcf_action_dump_1);

int
tcf_action_dump(struct sk_buff *skb, struct tc_action *act, int bind, int ref)
Expand Down Expand Up @@ -1077,8 +1081,3 @@ static int __init tc_action_init(void)
}

subsys_initcall(tc_action_init);

EXPORT_SYMBOL(tcf_register_action);
EXPORT_SYMBOL(tcf_unregister_action);
EXPORT_SYMBOL(tcf_action_exec);
EXPORT_SYMBOL(tcf_action_dump_1);
11 changes: 5 additions & 6 deletions trunk/net/sched/ematch.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ int tcf_em_register(struct tcf_ematch_ops *ops)
write_unlock(&ematch_mod_lock);
return err;
}
EXPORT_SYMBOL(tcf_em_register);

/**
* tcf_em_unregister - unregster and extended match
Expand Down Expand Up @@ -171,6 +172,7 @@ int tcf_em_unregister(struct tcf_ematch_ops *ops)
write_unlock(&ematch_mod_lock);
return err;
}
EXPORT_SYMBOL(tcf_em_unregister);

static inline struct tcf_ematch * tcf_em_get_match(struct tcf_ematch_tree *tree,
int index)
Expand Down Expand Up @@ -380,6 +382,7 @@ int tcf_em_tree_validate(struct tcf_proto *tp, struct rtattr *rta,
tcf_em_tree_destroy(tp, tree);
return err;
}
EXPORT_SYMBOL(tcf_em_tree_validate);

/**
* tcf_em_tree_destroy - destroy an ematch tree
Expand Down Expand Up @@ -413,6 +416,7 @@ void tcf_em_tree_destroy(struct tcf_proto *tp, struct tcf_ematch_tree *tree)
tree->hdr.nmatches = 0;
kfree(tree->matches);
}
EXPORT_SYMBOL(tcf_em_tree_destroy);

/**
* tcf_em_tree_dump - dump ematch tree into a rtnl message
Expand Down Expand Up @@ -472,6 +476,7 @@ int tcf_em_tree_dump(struct sk_buff *skb, struct tcf_ematch_tree *tree, int tlv)
rtattr_failure:
return -1;
}
EXPORT_SYMBOL(tcf_em_tree_dump);

static inline int tcf_em_match(struct sk_buff *skb, struct tcf_ematch *em,
struct tcf_pkt_info *info)
Expand Down Expand Up @@ -529,10 +534,4 @@ int __tcf_em_tree_match(struct sk_buff *skb, struct tcf_ematch_tree *tree,
printk("Local stack overflow, increase NET_EMATCH_STACK\n");
return -1;
}

EXPORT_SYMBOL(tcf_em_register);
EXPORT_SYMBOL(tcf_em_unregister);
EXPORT_SYMBOL(tcf_em_tree_validate);
EXPORT_SYMBOL(tcf_em_tree_destroy);
EXPORT_SYMBOL(tcf_em_tree_dump);
EXPORT_SYMBOL(__tcf_em_tree_match);
9 changes: 4 additions & 5 deletions trunk/net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ int register_qdisc(struct Qdisc_ops *qops)
write_unlock(&qdisc_mod_lock);
return rc;
}
EXPORT_SYMBOL(register_qdisc);

int unregister_qdisc(struct Qdisc_ops *qops)
{
Expand All @@ -176,6 +177,7 @@ int unregister_qdisc(struct Qdisc_ops *qops)
write_unlock(&qdisc_mod_lock);
return err;
}
EXPORT_SYMBOL(unregister_qdisc);

/* We know handle. Find qdisc among all qdisc's attached to device
(root qdisc, all its children, children of children etc.)
Expand Down Expand Up @@ -255,6 +257,7 @@ struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r, struct rtattr *ta
}
return rtab;
}
EXPORT_SYMBOL(qdisc_get_rtab);

void qdisc_put_rtab(struct qdisc_rate_table *tab)
{
Expand All @@ -271,6 +274,7 @@ void qdisc_put_rtab(struct qdisc_rate_table *tab)
}
}
}
EXPORT_SYMBOL(qdisc_put_rtab);

static enum hrtimer_restart qdisc_watchdog(struct hrtimer *timer)
{
Expand Down Expand Up @@ -1289,8 +1293,3 @@ static int __init pktsched_init(void)
}

subsys_initcall(pktsched_init);

EXPORT_SYMBOL(qdisc_get_rtab);
EXPORT_SYMBOL(qdisc_put_rtab);
EXPORT_SYMBOL(register_qdisc);
EXPORT_SYMBOL(unregister_qdisc);
3 changes: 1 addition & 2 deletions trunk/net/sched/sch_fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ struct Qdisc_ops pfifo_qdisc_ops __read_mostly = {
.dump = fifo_dump,
.owner = THIS_MODULE,
};
EXPORT_SYMBOL(pfifo_qdisc_ops);

struct Qdisc_ops bfifo_qdisc_ops __read_mostly = {
.id = "bfifo",
Expand All @@ -105,6 +106,4 @@ struct Qdisc_ops bfifo_qdisc_ops __read_mostly = {
.dump = fifo_dump,
.owner = THIS_MODULE,
};

EXPORT_SYMBOL(bfifo_qdisc_ops);
EXPORT_SYMBOL(pfifo_qdisc_ops);
17 changes: 8 additions & 9 deletions trunk/net/sched/sch_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void qdisc_lock_tree(struct net_device *dev)
spin_lock_bh(&dev->queue_lock);
spin_lock(&dev->ingress_lock);
}
EXPORT_SYMBOL(qdisc_lock_tree);

void qdisc_unlock_tree(struct net_device *dev)
__releases(dev->ingress_lock)
Expand All @@ -54,6 +55,7 @@ void qdisc_unlock_tree(struct net_device *dev)
spin_unlock(&dev->ingress_lock);
spin_unlock_bh(&dev->queue_lock);
}
EXPORT_SYMBOL(qdisc_unlock_tree);

static inline int qdisc_qlen(struct Qdisc *q)
{
Expand Down Expand Up @@ -253,6 +255,7 @@ void netif_carrier_on(struct net_device *dev)
__netdev_watchdog_up(dev);
}
}
EXPORT_SYMBOL(netif_carrier_on);

/**
* netif_carrier_off - clear carrier
Expand All @@ -265,6 +268,7 @@ void netif_carrier_off(struct net_device *dev)
if (!test_and_set_bit(__LINK_STATE_NOCARRIER, &dev->state))
linkwatch_fire_event(dev);
}
EXPORT_SYMBOL(netif_carrier_off);

/* "NOOP" scheduler: the best scheduler, recommended for all interfaces
under all circumstances. It is difficult to invent anything faster or
Expand Down Expand Up @@ -307,6 +311,7 @@ struct Qdisc noop_qdisc = {
.ops = &noop_qdisc_ops,
.list = LIST_HEAD_INIT(noop_qdisc.list),
};
EXPORT_SYMBOL(noop_qdisc);

static struct Qdisc_ops noqueue_qdisc_ops __read_mostly = {
.id = "noqueue",
Expand Down Expand Up @@ -471,6 +476,7 @@ struct Qdisc * qdisc_create_dflt(struct net_device *dev, struct Qdisc_ops *ops,
errout:
return NULL;
}
EXPORT_SYMBOL(qdisc_create_dflt);

/* Under dev->queue_lock and BH! */

Expand All @@ -481,6 +487,7 @@ void qdisc_reset(struct Qdisc *qdisc)
if (ops->reset)
ops->reset(qdisc);
}
EXPORT_SYMBOL(qdisc_reset);

/* this is the rcu callback function to clean up a qdisc when there
* are no further references to it */
Expand Down Expand Up @@ -512,6 +519,7 @@ void qdisc_destroy(struct Qdisc *qdisc)
dev_put(qdisc->dev);
call_rcu(&qdisc->q_rcu, __qdisc_destroy);
}
EXPORT_SYMBOL(qdisc_destroy);

void dev_activate(struct net_device *dev)
{
Expand Down Expand Up @@ -626,12 +634,3 @@ void dev_shutdown(struct net_device *dev)
BUG_TRAP(!timer_pending(&dev->watchdog_timer));
qdisc_unlock_tree(dev);
}

EXPORT_SYMBOL(netif_carrier_on);
EXPORT_SYMBOL(netif_carrier_off);
EXPORT_SYMBOL(noop_qdisc);
EXPORT_SYMBOL(qdisc_create_dflt);
EXPORT_SYMBOL(qdisc_destroy);
EXPORT_SYMBOL(qdisc_reset);
EXPORT_SYMBOL(qdisc_lock_tree);
EXPORT_SYMBOL(qdisc_unlock_tree);

0 comments on commit 4b71896

Please sign in to comment.