Lines Matching refs:tcm

890 	struct tcmsg *tcm;  in tc_fill_qdisc()  local
899 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc()
902 tcm = nlmsg_data(nlh); in tc_fill_qdisc()
903 tcm->tcm_family = AF_UNSPEC; in tc_fill_qdisc()
904 tcm->tcm__pad1 = 0; in tc_fill_qdisc()
905 tcm->tcm__pad2 = 0; in tc_fill_qdisc()
906 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_qdisc()
907 tcm->tcm_parent = clid; in tc_fill_qdisc()
908 tcm->tcm_handle = q->handle; in tc_fill_qdisc()
909 tcm->tcm_info = refcount_read(&q->refcnt); in tc_fill_qdisc()
1419 struct tcmsg *tcm = nlmsg_data(n); in tc_get_qdisc() local
1431 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_get_qdisc()
1436 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_get_qdisc()
1440 clid = tcm->tcm_parent; in tc_get_qdisc()
1461 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) { in tc_get_qdisc()
1466 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_get_qdisc()
1504 struct tcmsg *tcm; in tc_modify_qdisc() local
1516 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_modify_qdisc()
1521 tcm = nlmsg_data(n); in tc_modify_qdisc()
1522 clid = tcm->tcm_parent; in tc_modify_qdisc()
1525 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_modify_qdisc()
1550 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) { in tc_modify_qdisc()
1551 if (tcm->tcm_handle) { in tc_modify_qdisc()
1556 if (TC_H_MIN(tcm->tcm_handle)) { in tc_modify_qdisc()
1560 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1611 if (!tcm->tcm_handle) { in tc_modify_qdisc()
1615 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1644 tcm->tcm_parent, tcm->tcm_parent, in tc_modify_qdisc()
1654 dev_queue = p->ops->cl_ops->select_queue(p, tcm); in tc_modify_qdisc()
1661 tcm->tcm_parent, tcm->tcm_handle, in tc_modify_qdisc()
1797 struct tcmsg *tcm; in tc_fill_tclass() local
1804 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_tclass()
1807 tcm = nlmsg_data(nlh); in tc_fill_tclass()
1808 tcm->tcm_family = AF_UNSPEC; in tc_fill_tclass()
1809 tcm->tcm__pad1 = 0; in tc_fill_tclass()
1810 tcm->tcm__pad2 = 0; in tc_fill_tclass()
1811 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_tclass()
1812 tcm->tcm_parent = q->handle; in tc_fill_tclass()
1813 tcm->tcm_handle = q->handle; in tc_fill_tclass()
1814 tcm->tcm_info = 0; in tc_fill_tclass()
1817 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0) in tc_fill_tclass()
1982 struct tcmsg *tcm = nlmsg_data(n); in tc_ctl_tclass() local
1998 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_ctl_tclass()
2003 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_ctl_tclass()
2022 portid = tcm->tcm_parent; in tc_ctl_tclass()
2023 clid = tcm->tcm_handle; in tc_ctl_tclass()
2132 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_qdisc() argument
2139 (tcm->tcm_parent && in tc_dump_tclass_qdisc()
2140 TC_H_MAJ(tcm->tcm_parent) != q->handle)) { in tc_dump_tclass_qdisc()
2161 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_root() argument
2170 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2176 if (tcm->tcm_parent) { in tc_dump_tclass_root()
2177 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tclass_root()
2179 tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2184 if (tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2193 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tclass() local
2199 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tclass()
2201 dev = dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tclass()
2208 if (tc_dump_tclass_root(dev->qdisc, skb, tcm, cb, &t, s_t, true) < 0) in tc_dump_tclass()
2213 tc_dump_tclass_root(dev_queue->qdisc_sleeping, skb, tcm, cb, in tc_dump_tclass()