Lines Matching full:tcm

1821 	struct tcmsg *tcm;  in tcf_fill_node()  local
1825 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tcf_fill_node()
1828 tcm = nlmsg_data(nlh); in tcf_fill_node()
1829 tcm->tcm_family = AF_UNSPEC; in tcf_fill_node()
1830 tcm->tcm__pad1 = 0; in tcf_fill_node()
1831 tcm->tcm__pad2 = 0; in tcf_fill_node()
1833 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tcf_fill_node()
1834 tcm->tcm_parent = parent; in tcf_fill_node()
1836 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tcf_fill_node()
1837 tcm->tcm_block_index = block->index; in tcf_fill_node()
1839 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol); in tcf_fill_node()
1845 tcm->tcm_handle = 0; in tcf_fill_node()
1848 if (tp->ops->terse_dump(net, tp, fh, skb, tcm, in tcf_fill_node()
1856 tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0) in tcf_fill_node()
2494 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tcf_chain_dump() local
2506 if (TC_H_MAJ(tcm->tcm_info) && in tcf_chain_dump()
2507 TC_H_MAJ(tcm->tcm_info) != tp->prio) in tcf_chain_dump()
2509 if (TC_H_MIN(tcm->tcm_info) && in tcf_chain_dump()
2510 TC_H_MIN(tcm->tcm_info) != tp->protocol) in tcf_chain_dump()
2561 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tfilter() local
2568 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tfilter()
2571 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX, in tc_dump_tfilter()
2583 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_tfilter()
2584 block = tcf_block_refcnt_get(net, tcm->tcm_block_index); in tc_dump_tfilter()
2599 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tfilter()
2603 parent = tcm->tcm_parent; in tc_dump_tfilter()
2607 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tfilter()
2615 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_tfilter()
2616 cl = cops->find(q, tcm->tcm_parent); in tc_dump_tfilter()
2647 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) in tc_dump_tfilter()
2667 struct tcmsg *tcm; in tc_chain_fill_node() local
2673 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_chain_fill_node()
2676 tcm = nlmsg_data(nlh); in tc_chain_fill_node()
2677 tcm->tcm_family = AF_UNSPEC; in tc_chain_fill_node()
2678 tcm->tcm__pad1 = 0; in tc_chain_fill_node()
2679 tcm->tcm__pad2 = 0; in tc_chain_fill_node()
2680 tcm->tcm_handle = 0; in tc_chain_fill_node()
2682 tcm->tcm_ifindex = qdisc_dev(block->q)->ifindex; in tc_chain_fill_node()
2683 tcm->tcm_parent = block->q->handle; in tc_chain_fill_node()
2685 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tc_chain_fill_node()
2686 tcm->tcm_block_index = block->index; in tc_chain_fill_node()
2948 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_chain() local
2954 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_chain()
2957 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX, in tc_dump_chain()
2962 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_chain()
2963 block = tcf_block_refcnt_get(net, tcm->tcm_block_index); in tc_dump_chain()
2971 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_chain()
2975 if (!tcm->tcm_parent) in tc_dump_chain()
2978 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_chain()
2987 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_chain()
2988 cl = cops->find(q, tcm->tcm_parent); in tc_dump_chain()
3024 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) in tc_dump_chain()