Lines Matching refs:tcm

1805 	struct tcmsg *tcm;
1809 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
1812 tcm = nlmsg_data(nlh);
1813 tcm->tcm_family = AF_UNSPEC;
1814 tcm->tcm__pad1 = 0;
1815 tcm->tcm__pad2 = 0;
1817 tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
1818 tcm->tcm_parent = parent;
1820 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK;
1821 tcm->tcm_block_index = block->index;
1823 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol);
1829 tcm->tcm_handle = 0;
1832 if (tp->ops->terse_dump(net, tp, fh, skb, tcm,
1840 tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0)
2485 struct tcmsg *tcm = nlmsg_data(cb->nlh);
2497 if (TC_H_MAJ(tcm->tcm_info) &&
2498 TC_H_MAJ(tcm->tcm_info) != tp->prio)
2500 if (TC_H_MIN(tcm->tcm_info) &&
2501 TC_H_MIN(tcm->tcm_info) != tp->protocol)
2552 struct tcmsg *tcm = nlmsg_data(cb->nlh);
2559 if (nlmsg_len(cb->nlh) < sizeof(*tcm))
2562 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX,
2574 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) {
2575 block = tcf_block_refcnt_get(net, tcm->tcm_block_index);
2590 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
2594 parent = tcm->tcm_parent;
2598 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent));
2606 if (TC_H_MIN(tcm->tcm_parent)) {
2607 cl = cops->find(q, tcm->tcm_parent);
2638 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK)
2658 struct tcmsg *tcm;
2664 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
2667 tcm = nlmsg_data(nlh);
2668 tcm->tcm_family = AF_UNSPEC;
2669 tcm->tcm__pad1 = 0;
2670 tcm->tcm__pad2 = 0;
2671 tcm->tcm_handle = 0;
2673 tcm->tcm_ifindex = qdisc_dev(block->q)->ifindex;
2674 tcm->tcm_parent = block->q->handle;
2676 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK;
2677 tcm->tcm_block_index = block->index;
2946 struct tcmsg *tcm = nlmsg_data(cb->nlh);
2953 if (nlmsg_len(cb->nlh) < sizeof(*tcm))
2956 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX,
2961 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) {
2962 block = tcf_block_refcnt_get(net, tcm->tcm_block_index);
2977 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
2981 parent = tcm->tcm_parent;
2986 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent));
2995 if (TC_H_MIN(tcm->tcm_parent)) {
2996 cl = cops->find(q, tcm->tcm_parent);
3032 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK)