Lines Matching refs:tcm

882 	struct tcmsg *tcm;  in tc_fill_qdisc()  local
891 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc()
894 tcm = nlmsg_data(nlh); in tc_fill_qdisc()
895 tcm->tcm_family = AF_UNSPEC; in tc_fill_qdisc()
896 tcm->tcm__pad1 = 0; in tc_fill_qdisc()
897 tcm->tcm__pad2 = 0; in tc_fill_qdisc()
898 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_qdisc()
899 tcm->tcm_parent = clid; in tc_fill_qdisc()
900 tcm->tcm_handle = q->handle; in tc_fill_qdisc()
901 tcm->tcm_info = refcount_read(&q->refcnt); in tc_fill_qdisc()
1421 struct tcmsg *tcm = nlmsg_data(n); in tc_get_qdisc() local
1433 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_get_qdisc()
1438 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_get_qdisc()
1442 clid = tcm->tcm_parent; in tc_get_qdisc()
1463 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) { in tc_get_qdisc()
1468 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_get_qdisc()
1506 struct tcmsg *tcm; in tc_modify_qdisc() local
1518 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_modify_qdisc()
1523 tcm = nlmsg_data(n); in tc_modify_qdisc()
1524 clid = tcm->tcm_parent; in tc_modify_qdisc()
1527 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_modify_qdisc()
1552 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) { in tc_modify_qdisc()
1553 if (tcm->tcm_handle) { in tc_modify_qdisc()
1558 if (TC_H_MIN(tcm->tcm_handle)) { in tc_modify_qdisc()
1562 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1613 if (!tcm->tcm_handle) { in tc_modify_qdisc()
1617 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1646 tcm->tcm_parent, tcm->tcm_parent, in tc_modify_qdisc()
1656 dev_queue = p->ops->cl_ops->select_queue(p, tcm); in tc_modify_qdisc()
1663 tcm->tcm_parent, tcm->tcm_handle, in tc_modify_qdisc()
1799 struct tcmsg *tcm; in tc_fill_tclass() local
1806 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_tclass()
1809 tcm = nlmsg_data(nlh); in tc_fill_tclass()
1810 tcm->tcm_family = AF_UNSPEC; in tc_fill_tclass()
1811 tcm->tcm__pad1 = 0; in tc_fill_tclass()
1812 tcm->tcm__pad2 = 0; in tc_fill_tclass()
1813 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_tclass()
1814 tcm->tcm_parent = q->handle; in tc_fill_tclass()
1815 tcm->tcm_handle = q->handle; in tc_fill_tclass()
1816 tcm->tcm_info = 0; in tc_fill_tclass()
1819 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0) in tc_fill_tclass()
1989 struct tcmsg *tcm = nlmsg_data(n); in tc_ctl_tclass() local
2005 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_ctl_tclass()
2010 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_ctl_tclass()
2029 portid = tcm->tcm_parent; in tc_ctl_tclass()
2030 clid = tcm->tcm_handle; in tc_ctl_tclass()
2139 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_qdisc() argument
2146 (tcm->tcm_parent && in tc_dump_tclass_qdisc()
2147 TC_H_MAJ(tcm->tcm_parent) != q->handle)) { in tc_dump_tclass_qdisc()
2168 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_root() argument
2177 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2183 if (tcm->tcm_parent) { in tc_dump_tclass_root()
2184 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tclass_root()
2186 tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2191 if (tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2200 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tclass() local
2206 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tclass()
2208 dev = dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tclass()
2215 if (tc_dump_tclass_root(dev->qdisc, skb, tcm, cb, &t, s_t) < 0) in tc_dump_tclass()
2220 tc_dump_tclass_root(dev_queue->qdisc_sleeping, skb, tcm, cb, in tc_dump_tclass()