• Home
  • Raw
  • Download

Lines Matching refs:tcm

1802 	struct tcmsg *tcm;  in tcf_fill_node()  local
1806 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tcf_fill_node()
1809 tcm = nlmsg_data(nlh); in tcf_fill_node()
1810 tcm->tcm_family = AF_UNSPEC; in tcf_fill_node()
1811 tcm->tcm__pad1 = 0; in tcf_fill_node()
1812 tcm->tcm__pad2 = 0; in tcf_fill_node()
1814 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tcf_fill_node()
1815 tcm->tcm_parent = parent; in tcf_fill_node()
1817 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tcf_fill_node()
1818 tcm->tcm_block_index = block->index; in tcf_fill_node()
1820 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol); in tcf_fill_node()
1826 tcm->tcm_handle = 0; in tcf_fill_node()
1829 if (tp->ops->terse_dump(net, tp, fh, skb, tcm, in tcf_fill_node()
1837 tp->ops->dump(net, tp, fh, skb, tcm, rtnl_held) < 0) in tcf_fill_node()
2481 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tcf_chain_dump() local
2493 if (TC_H_MAJ(tcm->tcm_info) && in tcf_chain_dump()
2494 TC_H_MAJ(tcm->tcm_info) != tp->prio) in tcf_chain_dump()
2496 if (TC_H_MIN(tcm->tcm_info) && in tcf_chain_dump()
2497 TC_H_MIN(tcm->tcm_info) != tp->protocol) in tcf_chain_dump()
2548 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tfilter() local
2555 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tfilter()
2558 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX, in tc_dump_tfilter()
2570 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_tfilter()
2571 block = tcf_block_refcnt_get(net, tcm->tcm_block_index); in tc_dump_tfilter()
2586 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tfilter()
2590 parent = tcm->tcm_parent; in tc_dump_tfilter()
2594 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tfilter()
2602 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_tfilter()
2603 cl = cops->find(q, tcm->tcm_parent); in tc_dump_tfilter()
2634 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) in tc_dump_tfilter()
2654 struct tcmsg *tcm; in tc_chain_fill_node() local
2660 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_chain_fill_node()
2663 tcm = nlmsg_data(nlh); in tc_chain_fill_node()
2664 tcm->tcm_family = AF_UNSPEC; in tc_chain_fill_node()
2665 tcm->tcm__pad1 = 0; in tc_chain_fill_node()
2666 tcm->tcm__pad2 = 0; in tc_chain_fill_node()
2667 tcm->tcm_handle = 0; in tc_chain_fill_node()
2669 tcm->tcm_ifindex = qdisc_dev(block->q)->ifindex; in tc_chain_fill_node()
2670 tcm->tcm_parent = block->q->handle; in tc_chain_fill_node()
2672 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tc_chain_fill_node()
2673 tcm->tcm_block_index = block->index; in tc_chain_fill_node()
2940 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_chain() local
2946 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_chain()
2949 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX, in tc_dump_chain()
2954 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_chain()
2955 block = tcf_block_refcnt_get(net, tcm->tcm_block_index); in tc_dump_chain()
2963 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_chain()
2967 if (!tcm->tcm_parent) in tc_dump_chain()
2970 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_chain()
2979 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_chain()
2980 cl = cops->find(q, tcm->tcm_parent); in tc_dump_chain()
3016 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) in tc_dump_chain()