• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/sched/

Lines Matching defs:tcm

960 	struct tcmsg *tcm = NLMSG_DATA(n);
963 u32 clid = tcm->tcm_parent;
968 if ((dev = __dev_get_by_index(net, tcm->tcm_ifindex)) == NULL)
971 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL);
990 if (tcm->tcm_handle && q->handle != tcm->tcm_handle)
993 if ((q = qdisc_lookup(dev, tcm->tcm_handle)) == NULL)
1020 struct tcmsg *tcm;
1029 tcm = NLMSG_DATA(n);
1030 clid = tcm->tcm_parent;
1033 if ((dev = __dev_get_by_index(net, tcm->tcm_ifindex)) == NULL)
1036 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL);
1057 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) {
1058 if (tcm->tcm_handle) {
1061 if (TC_H_MIN(tcm->tcm_handle))
1063 if ((q = qdisc_lookup(dev, tcm->tcm_handle)) == NULL)
1106 if (!tcm->tcm_handle)
1108 q = qdisc_lookup(dev, tcm->tcm_handle);
1128 tcm->tcm_parent, tcm->tcm_parent,
1134 dev_queue = p->ops->cl_ops->select_queue(p, tcm);
1141 tcm->tcm_parent, tcm->tcm_handle,
1164 struct tcmsg *tcm;
1169 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
1170 tcm = NLMSG_DATA(nlh);
1171 tcm->tcm_family = AF_UNSPEC;
1172 tcm->tcm__pad1 = 0;
1173 tcm->tcm__pad2 = 0;
1174 tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
1175 tcm->tcm_parent = clid;
1176 tcm->tcm_handle = q->handle;
1177 tcm->tcm_info = atomic_read(&q->refcnt);
1335 struct tcmsg *tcm = NLMSG_DATA(n);
1342 u32 pid = tcm->tcm_parent;
1343 u32 clid = tcm->tcm_handle;
1347 if ((dev = __dev_get_by_index(net, tcm->tcm_ifindex)) == NULL)
1350 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL);
1458 struct tcmsg *tcm;
1464 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
1465 tcm = NLMSG_DATA(nlh);
1466 tcm->tcm_family = AF_UNSPEC;
1467 tcm->tcm__pad1 = 0;
1468 tcm->tcm__pad2 = 0;
1469 tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
1470 tcm->tcm_parent = q->handle;
1471 tcm->tcm_handle = q->handle;
1472 tcm->tcm_info = 0;
1474 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0)
1531 struct tcmsg *tcm, struct netlink_callback *cb,
1538 (tcm->tcm_parent &&
1539 TC_H_MAJ(tcm->tcm_parent) != q->handle)) {
1560 struct tcmsg *tcm, struct netlink_callback *cb,
1568 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0)
1572 if (tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0)
1581 struct tcmsg *tcm = (struct tcmsg*)NLMSG_DATA(cb->nlh);
1587 if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm)))
1589 if ((dev = dev_get_by_index(net, tcm->tcm_ifindex)) == NULL)
1595 if (tc_dump_tclass_root(dev->qdisc, skb, tcm, cb, &t, s_t) < 0)
1599 if (tc_dump_tclass_root(dev_queue->qdisc_sleeping, skb, tcm, cb, &t, s_t) < 0)