1 --- linux-mips-cvs/net/sched/sch_api.c 2004-11-19 01:29:09.000000000 +0100
2 +++ linux-broadcom/net/sched/sch_api.c 2005-01-31 18:07:45.000000000 +0100
8 + for (q = dev->qdisc_list; q; q = q->next) {
10 list_for_each_entry(q, &dev->qdisc_list, list) {
12 if (q->handle == handle)
16 unsigned long cl = cops->get(parent, classid);
18 err = cops->graft(parent, cl, new, old);
19 +#ifndef CONFIG_BCM4710
21 new->parent = classid;
23 cops->put(parent, cl);
30 +#ifdef CONFIG_BCM4710
33 INIT_LIST_HEAD(&sch->list);
35 skb_queue_head_init(&sch->q);
37 if (handle == TC_H_INGRESS)
40 if (!ops->init || (err = ops->init(sch, tca[TCA_OPTIONS-1])) == 0) {
41 write_lock(&qdisc_tree_lock);
42 +#ifdef CONFIG_BCM4710
43 + sch->next = dev->qdisc_list;
44 + dev->qdisc_list = sch;
46 list_add_tail(&sch->list, &dev->qdisc_list);
48 write_unlock(&qdisc_tree_lock);
49 #ifdef CONFIG_NET_ESTIMATOR
53 read_lock(&qdisc_tree_lock);
55 +#ifdef CONFIG_BCM4710
56 + for (q = dev->qdisc_list, q_idx = 0; q; q = q->next, q_idx++) {
58 list_for_each_entry(q, &dev->qdisc_list, list) {
60 if (q_idx < s_q_idx) {
64 +#ifdef CONFIG_BCM4710
65 + if (tc_fill_qdisc(skb, q, 0, NETLINK_CB(cb->skb).pid,
67 if (tc_fill_qdisc(skb, q, q->parent, NETLINK_CB(cb->skb).pid,
69 cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWQDISC) <= 0) {
70 read_unlock(&qdisc_tree_lock);
72 @@ -1033,7 +1056,11 @@
75 read_lock(&qdisc_tree_lock);
76 +#ifdef CONFIG_BCM4710
77 + for (q=dev->qdisc_list, t=0; q; q = q->next, t++) {
79 list_for_each_entry(q, &dev->qdisc_list, list) {
81 if (t < s_t || !q->ops->cl_ops ||
83 TC_H_MAJ(tcm->tcm_parent) != q->handle)) {