• Home
  • Raw
  • Download

Lines Matching full:tcm

1804 	struct tcmsg *tcm;  in tcf_fill_node()  local
1808 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tcf_fill_node()
1811 tcm = nlmsg_data(nlh); in tcf_fill_node()
1812 tcm->tcm_family = AF_UNSPEC; in tcf_fill_node()
1813 tcm->tcm__pad1 = 0; in tcf_fill_node()
1814 tcm->tcm__pad2 = 0; in tcf_fill_node()
1816 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tcf_fill_node()
1817 tcm->tcm_parent = parent; in tcf_fill_node()
1819 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tcf_fill_node()
1820 tcm->tcm_block_index = block->index; in tcf_fill_node()
1822 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol); in tcf_fill_node()
1828 tcm->tcm_handle = 0; in tcf_fill_node()
1831 if (tp->ops->terse_dump(net, tp, fh, skb, tcm, in tcf_fill_node()
1839 tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0) in tcf_fill_node()
2483 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tcf_chain_dump() local
2495 if (TC_H_MAJ(tcm->tcm_info) && in tcf_chain_dump()
2496 TC_H_MAJ(tcm->tcm_info) != tp->prio) in tcf_chain_dump()
2498 if (TC_H_MIN(tcm->tcm_info) && in tcf_chain_dump()
2499 TC_H_MIN(tcm->tcm_info) != tp->protocol) in tcf_chain_dump()
2550 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tfilter() local
2557 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tfilter()
2560 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX, in tc_dump_tfilter()
2572 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_tfilter()
2573 block = tcf_block_refcnt_get(net, tcm->tcm_block_index); in tc_dump_tfilter()
2588 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tfilter()
2592 parent = tcm->tcm_parent; in tc_dump_tfilter()
2596 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tfilter()
2604 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_tfilter()
2605 cl = cops->find(q, tcm->tcm_parent); in tc_dump_tfilter()
2636 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) in tc_dump_tfilter()
2656 struct tcmsg *tcm; in tc_chain_fill_node() local
2662 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_chain_fill_node()
2665 tcm = nlmsg_data(nlh); in tc_chain_fill_node()
2666 tcm->tcm_family = AF_UNSPEC; in tc_chain_fill_node()
2667 tcm->tcm__pad1 = 0; in tc_chain_fill_node()
2668 tcm->tcm__pad2 = 0; in tc_chain_fill_node()
2669 tcm->tcm_handle = 0; in tc_chain_fill_node()
2671 tcm->tcm_ifindex = qdisc_dev(block->q)->ifindex; in tc_chain_fill_node()
2672 tcm->tcm_parent = block->q->handle; in tc_chain_fill_node()
2674 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tc_chain_fill_node()
2675 tcm->tcm_block_index = block->index; in tc_chain_fill_node()
2943 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_chain() local
2950 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_chain()
2953 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX, in tc_dump_chain()
2958 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_chain()
2959 block = tcf_block_refcnt_get(net, tcm->tcm_block_index); in tc_dump_chain()
2974 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_chain()
2978 parent = tcm->tcm_parent; in tc_dump_chain()
2983 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_chain()
2992 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_chain()
2993 cl = cops->find(q, tcm->tcm_parent); in tc_dump_chain()
3029 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) in tc_dump_chain()