Lines Matching refs:tcm

1076 	struct tcmsg *tcm;  in tcf_fill_node()  local
1080 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tcf_fill_node()
1083 tcm = nlmsg_data(nlh); in tcf_fill_node()
1084 tcm->tcm_family = AF_UNSPEC; in tcf_fill_node()
1085 tcm->tcm__pad1 = 0; in tcf_fill_node()
1086 tcm->tcm__pad2 = 0; in tcf_fill_node()
1088 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tcf_fill_node()
1089 tcm->tcm_parent = parent; in tcf_fill_node()
1091 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tcf_fill_node()
1092 tcm->tcm_block_index = block->index; in tcf_fill_node()
1094 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol); in tcf_fill_node()
1100 tcm->tcm_handle = 0; in tcf_fill_node()
1102 if (tp->ops->dump && tp->ops->dump(net, tp, fh, skb, tcm) < 0) in tcf_fill_node()
1572 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tcf_chain_dump() local
1580 if (TC_H_MAJ(tcm->tcm_info) && in tcf_chain_dump()
1581 TC_H_MAJ(tcm->tcm_info) != tp->prio) in tcf_chain_dump()
1583 if (TC_H_MIN(tcm->tcm_info) && in tcf_chain_dump()
1584 TC_H_MIN(tcm->tcm_info) != tp->protocol) in tcf_chain_dump()
1627 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tfilter() local
1633 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tfilter()
1636 err = nlmsg_parse(cb->nlh, sizeof(*tcm), tca, TCA_MAX, NULL, NULL); in tc_dump_tfilter()
1640 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_tfilter()
1641 block = tcf_block_lookup(net, tcm->tcm_block_index); in tc_dump_tfilter()
1656 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tfilter()
1660 parent = tcm->tcm_parent; in tc_dump_tfilter()
1665 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tfilter()
1674 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_tfilter()
1675 cl = cops->find(q, tcm->tcm_parent); in tc_dump_tfilter()
1716 struct tcmsg *tcm; in tc_chain_fill_node() local
1722 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_chain_fill_node()
1725 tcm = nlmsg_data(nlh); in tc_chain_fill_node()
1726 tcm->tcm_family = AF_UNSPEC; in tc_chain_fill_node()
1727 tcm->tcm__pad1 = 0; in tc_chain_fill_node()
1728 tcm->tcm__pad2 = 0; in tc_chain_fill_node()
1729 tcm->tcm_handle = 0; in tc_chain_fill_node()
1731 tcm->tcm_ifindex = qdisc_dev(block->q)->ifindex; in tc_chain_fill_node()
1732 tcm->tcm_parent = block->q->handle; in tc_chain_fill_node()
1734 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tc_chain_fill_node()
1735 tcm->tcm_block_index = block->index; in tc_chain_fill_node()
1945 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_chain() local
1951 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_chain()
1954 err = nlmsg_parse(cb->nlh, sizeof(*tcm), tca, TCA_MAX, rtm_tca_policy, in tc_dump_chain()
1959 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_chain()
1960 block = tcf_block_lookup(net, tcm->tcm_block_index); in tc_dump_chain()
1975 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_chain()
1979 parent = tcm->tcm_parent; in tc_dump_chain()
1984 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_chain()
1993 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_chain()
1994 cl = cops->find(q, tcm->tcm_parent); in tc_dump_chain()