Lines Matching refs:tcm

889 	struct tcmsg *tcm;
898 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
901 tcm = nlmsg_data(nlh);
902 tcm->tcm_family = AF_UNSPEC;
903 tcm->tcm__pad1 = 0;
904 tcm->tcm__pad2 = 0;
905 tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
906 tcm->tcm_parent = clid;
907 tcm->tcm_handle = q->handle;
908 tcm->tcm_info = refcount_read(&q->refcnt);
1439 struct tcmsg *tcm = nlmsg_data(n);
1451 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
1456 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
1460 clid = tcm->tcm_parent;
1481 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) {
1486 q = qdisc_lookup(dev, tcm->tcm_handle);
1542 struct tcmsg *tcm;
1554 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
1559 tcm = nlmsg_data(n);
1560 clid = tcm->tcm_parent;
1563 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
1588 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) {
1589 if (tcm->tcm_handle) {
1594 if (TC_H_MIN(tcm->tcm_handle)) {
1598 q = qdisc_lookup(dev, tcm->tcm_handle);
1666 if (!tcm->tcm_handle) {
1670 q = qdisc_lookup(dev, tcm->tcm_handle);
1700 tcm->tcm_parent, tcm->tcm_parent,
1710 dev_queue = p->ops->cl_ops->select_queue(p, tcm);
1717 tcm->tcm_parent, tcm->tcm_handle,
1854 struct tcmsg *tcm;
1861 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
1864 tcm = nlmsg_data(nlh);
1865 tcm->tcm_family = AF_UNSPEC;
1866 tcm->tcm__pad1 = 0;
1867 tcm->tcm__pad2 = 0;
1868 tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
1869 tcm->tcm_parent = q->handle;
1870 tcm->tcm_handle = q->handle;
1871 tcm->tcm_info = 0;
1874 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0)
2044 struct tcmsg *tcm = nlmsg_data(n);
2060 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX,
2065 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
2084 portid = tcm->tcm_parent;
2085 clid = tcm->tcm_handle;
2194 struct tcmsg *tcm, struct netlink_callback *cb,
2201 (tcm->tcm_parent &&
2202 TC_H_MAJ(tcm->tcm_parent) != q->handle)) {
2223 struct tcmsg *tcm, struct netlink_callback *cb,
2232 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0)
2238 if (tcm->tcm_parent) {
2239 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent));
2241 tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0)
2246 if (tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0)
2255 struct tcmsg *tcm = nlmsg_data(cb->nlh);
2261 if (nlmsg_len(cb->nlh) < sizeof(*tcm))
2263 dev = dev_get_by_index(net, tcm->tcm_ifindex);
2271 skb, tcm, cb, &t, s_t, true) < 0)
2276 tc_dump_tclass_root(dev_queue->qdisc_sleeping, skb, tcm, cb,