• Home
  • Raw
  • Download

Lines Matching full:tcm

801 	struct tcmsg *tcm;  in tc_fill_qdisc()  local
810 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc()
813 tcm = nlmsg_data(nlh); in tc_fill_qdisc()
814 tcm->tcm_family = AF_UNSPEC; in tc_fill_qdisc()
815 tcm->tcm__pad1 = 0; in tc_fill_qdisc()
816 tcm->tcm__pad2 = 0; in tc_fill_qdisc()
817 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_qdisc()
818 tcm->tcm_parent = clid; in tc_fill_qdisc()
819 tcm->tcm_handle = q->handle; in tc_fill_qdisc()
820 tcm->tcm_info = refcount_read(&q->refcnt); in tc_fill_qdisc()
1334 struct tcmsg *tcm = nlmsg_data(n); in tc_get_qdisc() local
1346 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, rtm_tca_policy, in tc_get_qdisc()
1351 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_get_qdisc()
1355 clid = tcm->tcm_parent; in tc_get_qdisc()
1376 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) { in tc_get_qdisc()
1381 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_get_qdisc()
1419 struct tcmsg *tcm; in tc_modify_qdisc() local
1431 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, rtm_tca_policy, in tc_modify_qdisc()
1436 tcm = nlmsg_data(n); in tc_modify_qdisc()
1437 clid = tcm->tcm_parent; in tc_modify_qdisc()
1440 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_modify_qdisc()
1465 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) { in tc_modify_qdisc()
1466 if (tcm->tcm_handle) { in tc_modify_qdisc()
1471 if (TC_H_MIN(tcm->tcm_handle)) { in tc_modify_qdisc()
1475 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1526 if (!tcm->tcm_handle) { in tc_modify_qdisc()
1530 q = qdisc_lookup(dev, tcm->tcm_handle); in tc_modify_qdisc()
1559 tcm->tcm_parent, tcm->tcm_parent, in tc_modify_qdisc()
1569 dev_queue = p->ops->cl_ops->select_queue(p, tcm); in tc_modify_qdisc()
1576 tcm->tcm_parent, tcm->tcm_handle, in tc_modify_qdisc()
1712 struct tcmsg *tcm; in tc_fill_tclass() local
1719 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_tclass()
1722 tcm = nlmsg_data(nlh); in tc_fill_tclass()
1723 tcm->tcm_family = AF_UNSPEC; in tc_fill_tclass()
1724 tcm->tcm__pad1 = 0; in tc_fill_tclass()
1725 tcm->tcm__pad2 = 0; in tc_fill_tclass()
1726 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tc_fill_tclass()
1727 tcm->tcm_parent = q->handle; in tc_fill_tclass()
1728 tcm->tcm_handle = q->handle; in tc_fill_tclass()
1729 tcm->tcm_info = 0; in tc_fill_tclass()
1732 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0) in tc_fill_tclass()
1874 struct tcmsg *tcm = nlmsg_data(n); in tc_ctl_tclass() local
1890 err = nlmsg_parse(n, sizeof(*tcm), tca, TCA_MAX, rtm_tca_policy, in tc_ctl_tclass()
1895 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_ctl_tclass()
1914 portid = tcm->tcm_parent; in tc_ctl_tclass()
1915 clid = tcm->tcm_handle; in tc_ctl_tclass()
2024 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_qdisc() argument
2031 (tcm->tcm_parent && in tc_dump_tclass_qdisc()
2032 TC_H_MAJ(tcm->tcm_parent) != q->handle)) { in tc_dump_tclass_qdisc()
2053 struct tcmsg *tcm, struct netlink_callback *cb, in tc_dump_tclass_root() argument
2062 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2068 if (tcm->tcm_parent) { in tc_dump_tclass_root()
2069 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tclass_root()
2071 tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2076 if (tc_dump_tclass_qdisc(q, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2085 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tclass() local
2091 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tclass()
2093 dev = dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tclass()
2100 if (tc_dump_tclass_root(dev->qdisc, skb, tcm, cb, &t, s_t) < 0) in tc_dump_tclass()
2105 tc_dump_tclass_root(dev_queue->qdisc_sleeping, skb, tcm, cb, in tc_dump_tclass()