Lines Matching refs:tcm
1977 struct tcmsg *tcm;
1981 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
1984 tcm = nlmsg_data(nlh);
1985 tcm->tcm_family = AF_UNSPEC;
1986 tcm->tcm__pad1 = 0;
1987 tcm->tcm__pad2 = 0;
1989 tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
1990 tcm->tcm_parent = parent;
1992 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK;
1993 tcm->tcm_block_index = block->index;
1995 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol);
2001 tcm->tcm_handle = 0;
2004 if (tp->ops->terse_dump(net, tp, fh, skb, tcm,
2012 tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0)
2664 struct tcmsg *tcm = nlmsg_data(cb->nlh);
2676 if (TC_H_MAJ(tcm->tcm_info) &&
2677 TC_H_MAJ(tcm->tcm_info) != tp->prio)
2679 if (TC_H_MIN(tcm->tcm_info) &&
2680 TC_H_MIN(tcm->tcm_info) != tp->protocol)
2731 struct tcmsg *tcm = nlmsg_data(cb->nlh);
2738 if (nlmsg_len(cb->nlh) < sizeof(*tcm))
2741 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX,
2753 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) {
2754 block = tcf_block_refcnt_get(net, tcm->tcm_block_index);
2769 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
2773 parent = tcm->tcm_parent;
2777 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent));
2785 if (TC_H_MIN(tcm->tcm_parent)) {
2786 cl = cops->find(q, tcm->tcm_parent);
2817 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK)
2838 struct tcmsg *tcm;
2844 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags);
2847 tcm = nlmsg_data(nlh);
2848 tcm->tcm_family = AF_UNSPEC;
2849 tcm->tcm__pad1 = 0;
2850 tcm->tcm__pad2 = 0;
2851 tcm->tcm_handle = 0;
2853 tcm->tcm_ifindex = qdisc_dev(block->q)->ifindex;
2854 tcm->tcm_parent = block->q->handle;
2856 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK;
2857 tcm->tcm_block_index = block->index;
3127 struct tcmsg *tcm = nlmsg_data(cb->nlh);
3133 if (nlmsg_len(cb->nlh) < sizeof(*tcm))
3136 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX,
3141 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) {
3142 block = tcf_block_refcnt_get(net, tcm->tcm_block_index);
3150 dev = __dev_get_by_index(net, tcm->tcm_ifindex);
3154 if (!tcm->tcm_parent)
3157 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent));
3166 if (TC_H_MIN(tcm->tcm_parent)) {
3167 cl = cops->find(q, tcm->tcm_parent);
3203 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK)