Lines Matching full:tcm

908 	struct tcmsg *tcm;  in tc_fill_qdisc()  local
917 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc()
920 tcm = nlmsg_data(nlh); in tc_fill_qdisc()
921 tcm->tcm_family = AF_UNSPEC; in tc_fill_qdisc()
922 tcm->tcm__pad1 = 0; in tc_fill_qdisc()
923 tcm->tcm__pad2 = 0; in tc_fill_qdisc()
924 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_qdisc()
925 tcm->tcm_parent = clid; in tc_fill_qdisc()
926 tcm->tcm_handle = q->handle; in tc_fill_qdisc()
927 tcm->tcm_info = refcount_read(&q->refcnt); in tc_fill_qdisc()
1438 struct tcmsg *tcm = nlmsg_data(n); in tc_get_qdisc() local
1446 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_get_qdisc()
1451 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_get_qdisc()
1455 clid = tcm->tcm_parent; in tc_get_qdisc()
1476 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) { in tc_get_qdisc()
1481 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_get_qdisc()
1519 struct tcmsg *tcm; in tc_modify_qdisc() local
1528 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_modify_qdisc()
1533 tcm = nlmsg_data(n); in tc_modify_qdisc()
1534 clid = tcm->tcm_parent; in tc_modify_qdisc()
1537 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_modify_qdisc()
1562 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) { in tc_modify_qdisc()
1563 if (tcm->tcm_handle) { in tc_modify_qdisc()
1568 if (TC_H_MIN(tcm->tcm_handle)) { in tc_modify_qdisc()
1572 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1623 if (!tcm->tcm_handle) { in tc_modify_qdisc()
1627 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1656 tcm->tcm_parent, tcm->tcm_parent, in tc_modify_qdisc()
1666 dev_queue = p->ops->cl_ops->select_queue(p, tcm); in tc_modify_qdisc()
1673 tcm->tcm_parent, tcm->tcm_handle, in tc_modify_qdisc()
1810 struct tcmsg *tcm; in tc_fill_tclass() local
1817 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_tclass()
1820 tcm = nlmsg_data(nlh); in tc_fill_tclass()
1821 tcm->tcm_family = AF_UNSPEC; in tc_fill_tclass()
1822 tcm->tcm__pad1 = 0; in tc_fill_tclass()
1823 tcm->tcm__pad2 = 0; in tc_fill_tclass()
1824 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_tclass()
1825 tcm->tcm_parent = q->handle; in tc_fill_tclass()
1826 tcm->tcm_handle = q->handle; in tc_fill_tclass()
1827 tcm->tcm_info = 0; in tc_fill_tclass()
1830 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0) in tc_fill_tclass()
1995 struct tcmsg *tcm = nlmsg_data(n); in tc_ctl_tclass() local
2007 err = nlmsg_parse_deprecated(n, sizeof(*tcm), tca, TCA_MAX, in tc_ctl_tclass()
2012 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_ctl_tclass()
2031 portid = tcm->tcm_parent; in tc_ctl_tclass()
2032 clid = tcm->tcm_handle; in tc_ctl_tclass()
2141 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_qdisc() argument
2148 (tcm->tcm_parent && in tc_dump_tclass_qdisc()
2149 TC_H_MAJ(tcm->tcm_parent) != q->handle)) { in tc_dump_tclass_qdisc()
2170 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_root() argument
2179 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2185 if (tcm->tcm_parent) { in tc_dump_tclass_root()
2186 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tclass_root()
2188 tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2193 if (tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2202 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tclass() local
2208 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tclass()
2210 dev = dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tclass()
2218 skb, tcm, cb, &t, s_t, true) < 0) in tc_dump_tclass()
2223 tc_dump_tclass_root(dev_queue->qdisc_sleeping, skb, tcm, cb, in tc_dump_tclass()