Lines Matching refs:tcm

1113 	struct tcmsg *tcm = nlmsg_data(n);  in tc_get_qdisc()  local
1125 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL); in tc_get_qdisc()
1129 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_get_qdisc()
1133 clid = tcm->tcm_parent; in tc_get_qdisc()
1150 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) in tc_get_qdisc()
1153 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_get_qdisc()
1182 struct tcmsg *tcm; in tc_modify_qdisc() local
1194 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL); in tc_modify_qdisc()
1198 tcm = nlmsg_data(n); in tc_modify_qdisc()
1199 clid = tcm->tcm_parent; in tc_modify_qdisc()
1202 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_modify_qdisc()
1225 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) { in tc_modify_qdisc()
1226 if (tcm->tcm_handle) { in tc_modify_qdisc()
1229 if (TC_H_MIN(tcm->tcm_handle)) in tc_modify_qdisc()
1231 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1275 if (!tcm->tcm_handle) in tc_modify_qdisc()
1277 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1298 tcm->tcm_parent, tcm->tcm_parent, in tc_modify_qdisc()
1306 dev_queue = p->ops->cl_ops->select_queue(p, tcm); in tc_modify_qdisc()
1313 tcm->tcm_parent, tcm->tcm_handle, in tc_modify_qdisc()
1338 struct tcmsg *tcm; in tc_fill_qdisc() local
1346 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc()
1349 tcm = nlmsg_data(nlh); in tc_fill_qdisc()
1350 tcm->tcm_family = AF_UNSPEC; in tc_fill_qdisc()
1351 tcm->tcm__pad1 = 0; in tc_fill_qdisc()
1352 tcm->tcm__pad2 = 0; in tc_fill_qdisc()
1353 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_qdisc()
1354 tcm->tcm_parent = clid; in tc_fill_qdisc()
1355 tcm->tcm_handle = q->handle; in tc_fill_qdisc()
1356 tcm->tcm_info = atomic_read(&q->refcnt); in tc_fill_qdisc()
1524 struct tcmsg *tcm = nlmsg_data(n); in tc_ctl_tclass() local
1540 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, NULL); in tc_ctl_tclass()
1544 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_ctl_tclass()
1563 portid = tcm->tcm_parent; in tc_ctl_tclass()
1564 clid = tcm->tcm_handle; in tc_ctl_tclass()
1658 struct tcmsg *tcm; in tc_fill_tclass() local
1665 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_tclass()
1668 tcm = nlmsg_data(nlh); in tc_fill_tclass()
1669 tcm->tcm_family = AF_UNSPEC; in tc_fill_tclass()
1670 tcm->tcm__pad1 = 0; in tc_fill_tclass()
1671 tcm->tcm__pad2 = 0; in tc_fill_tclass()
1672 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_tclass()
1673 tcm->tcm_parent = q->handle; in tc_fill_tclass()
1674 tcm->tcm_handle = q->handle; in tc_fill_tclass()
1675 tcm->tcm_info = 0; in tc_fill_tclass()
1678 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0) in tc_fill_tclass()
1735 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_qdisc() argument
1742 (tcm->tcm_parent && in tc_dump_tclass_qdisc()
1743 TC_H_MAJ(tcm->tcm_parent) != q->handle)) { in tc_dump_tclass_qdisc()
1764 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_root() argument
1772 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
1776 if (tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
1785 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tclass() local
1791 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tclass()
1793 dev = dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tclass()
1800 if (tc_dump_tclass_root(dev->qdisc, skb, tcm, cb, &t, s_t) < 0) in tc_dump_tclass()
1805 tc_dump_tclass_root(dev_queue->qdisc_sleeping, skb, tcm, cb, in tc_dump_tclass()