Lines Matching refs:tcm
918 struct tcmsg *tcm;
927 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
930 tcm = nlmsg_data(nlh);
931 tcm->tcm_family = AF_UNSPEC;
932 tcm->tcm__pad1 = 0;
933 tcm->tcm__pad2 = 0;
934 tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
935 tcm->tcm_parent = clid;
936 tcm->tcm_handle = q->handle;
937 tcm->tcm_info = refcount_read(&q->refcnt);
1477 struct tcmsg *tcm = nlmsg_data(n);
1485 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
1490 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
1494 clid = tcm->tcm_parent;
1515 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) {
1520 q = qdisc_lookup(dev, tcm->tcm_handle);
1576 struct tcmsg *tcm;
1585 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
1590 tcm = nlmsg_data(n);
1591 clid = tcm->tcm_parent;
1594 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
1619 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) {
1620 if (tcm->tcm_handle) {
1625 if (TC_H_MIN(tcm->tcm_handle)) {
1629 q = qdisc_lookup(dev, tcm->tcm_handle);
1697 if (!tcm->tcm_handle) {
1701 q = qdisc_lookup(dev, tcm->tcm_handle);
1731 tcm->tcm_parent, tcm->tcm_parent,
1741 dev_queue = p->ops->cl_ops->select_queue(p, tcm);
1748 tcm->tcm_parent, tcm->tcm_handle,
1885 struct tcmsg *tcm;
1892 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
1895 tcm = nlmsg_data(nlh);
1896 tcm->tcm_family = AF_UNSPEC;
1897 tcm->tcm__pad1 = 0;
1898 tcm->tcm__pad2 = 0;
1899 tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
1900 tcm->tcm_parent = q->handle;
1901 tcm->tcm_handle = q->handle;
1902 tcm->tcm_info = 0;
1905 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0)
2075 struct tcmsg *tcm = nlmsg_data(n);
2087 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
2092 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
2111 portid = tcm->tcm_parent;
2112 clid = tcm->tcm_handle;
2221 struct tcmsg *tcm, struct netlink_callback *cb,
2228 (tcm->tcm_parent &&
2229 TC_H_MAJ(tcm->tcm_parent) != q->handle)) {
2250 struct tcmsg *tcm, struct netlink_callback *cb,
2259 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0)
2265 if (tcm->tcm_parent) {
2266 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent));
2268 tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0)
2273 if (tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0)
2282 struct tcmsg *tcm = nlmsg_data(cb->nlh);
2288 if (nlmsg_len(cb->nlh) < sizeof(*tcm))
2290 dev = dev_get_by_index(net, tcm->tcm_ifindex);
2298 skb, tcm, cb, &t, s_t, true) < 0)
2304 skb, tcm, cb, &t, s_t, false) < 0)