• Home
  • Raw
  • Download

Lines Matching full:tcm

1075 	struct tcmsg *tcm;  in tcf_fill_node()  local
1079 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tcf_fill_node()
1082 tcm = nlmsg_data(nlh); in tcf_fill_node()
1083 tcm->tcm_family = AF_UNSPEC; in tcf_fill_node()
1084 tcm->tcm__pad1 = 0; in tcf_fill_node()
1085 tcm->tcm__pad2 = 0; in tcf_fill_node()
1087 tcm->tcm_ifindex = qdisc_dev(q)->ifindex; in tcf_fill_node()
1088 tcm->tcm_parent = parent; in tcf_fill_node()
1090 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tcf_fill_node()
1091 tcm->tcm_block_index = block->index; in tcf_fill_node()
1093 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol); in tcf_fill_node()
1099 tcm->tcm_handle = 0; in tcf_fill_node()
1101 if (tp->ops->dump && tp->ops->dump(net, tp, fh, skb, tcm) < 0) in tcf_fill_node()
1574 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tcf_chain_dump() local
1582 if (TC_H_MAJ(tcm->tcm_info) && in tcf_chain_dump()
1583 TC_H_MAJ(tcm->tcm_info) != tp->prio) in tcf_chain_dump()
1585 if (TC_H_MIN(tcm->tcm_info) && in tcf_chain_dump()
1586 TC_H_MIN(tcm->tcm_info) != tp->protocol) in tcf_chain_dump()
1629 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tfilter() local
1635 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tfilter()
1638 err = nlmsg_parse(cb->nlh, sizeof(*tcm), tca, TCA_MAX, NULL, NULL); in tc_dump_tfilter()
1642 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_tfilter()
1643 block = tcf_block_lookup(net, tcm->tcm_block_index); in tc_dump_tfilter()
1658 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tfilter()
1662 parent = tcm->tcm_parent; in tc_dump_tfilter()
1667 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tfilter()
1676 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_tfilter()
1677 cl = cops->find(q, tcm->tcm_parent); in tc_dump_tfilter()
1718 struct tcmsg *tcm; in tc_chain_fill_node() local
1724 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_chain_fill_node()
1727 tcm = nlmsg_data(nlh); in tc_chain_fill_node()
1728 tcm->tcm_family = AF_UNSPEC; in tc_chain_fill_node()
1729 tcm->tcm__pad1 = 0; in tc_chain_fill_node()
1730 tcm->tcm__pad2 = 0; in tc_chain_fill_node()
1731 tcm->tcm_handle = 0; in tc_chain_fill_node()
1733 tcm->tcm_ifindex = qdisc_dev(block->q)->ifindex; in tc_chain_fill_node()
1734 tcm->tcm_parent = block->q->handle; in tc_chain_fill_node()
1736 tcm->tcm_ifindex = TCM_IFINDEX_MAGIC_BLOCK; in tc_chain_fill_node()
1737 tcm->tcm_block_index = block->index; in tc_chain_fill_node()
1947 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_chain() local
1953 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_chain()
1956 err = nlmsg_parse(cb->nlh, sizeof(*tcm), tca, TCA_MAX, rtm_tca_policy, in tc_dump_chain()
1961 if (tcm->tcm_ifindex == TCM_IFINDEX_MAGIC_BLOCK) { in tc_dump_chain()
1962 block = tcf_block_lookup(net, tcm->tcm_block_index); in tc_dump_chain()
1977 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_chain()
1981 parent = tcm->tcm_parent; in tc_dump_chain()
1986 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_chain()
1995 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_chain()
1996 cl = cops->find(q, tcm->tcm_parent); in tc_dump_chain()