Lines Matching refs:tcm
357 struct tcmsg *tcm; in tcf_fill_node() local
361 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tcf_fill_node()
364 tcm = nlmsg_data(nlh); in tcf_fill_node()
365 tcm->tcm_family = AF_UNSPEC; in tcf_fill_node()
366 tcm->tcm__pad1 = 0; in tcf_fill_node()
367 tcm->tcm__pad2 = 0; in tcf_fill_node()
368 tcm->tcm_ifindex = qdisc_dev(tp->q)->ifindex; in tcf_fill_node()
369 tcm->tcm_parent = tp->classid; in tcf_fill_node()
370 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol); in tcf_fill_node()
373 tcm->tcm_handle = fh; in tcf_fill_node()
375 tcm->tcm_handle = 0; in tcf_fill_node()
376 if (tp->ops->dump && tp->ops->dump(net, tp, fh, skb, tcm) < 0) in tcf_fill_node()
433 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tfilter() local
438 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tfilter()
440 dev = __dev_get_by_index(net, tcm->tcm_ifindex); in tc_dump_tfilter()
444 if (!tcm->tcm_parent) in tc_dump_tfilter()
447 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tfilter()
455 if (TC_H_MIN(tcm->tcm_parent)) { in tc_dump_tfilter()
456 cl = cops->get(q, tcm->tcm_parent); in tc_dump_tfilter()
470 if (TC_H_MAJ(tcm->tcm_info) && in tc_dump_tfilter()
471 TC_H_MAJ(tcm->tcm_info) != tp->prio) in tc_dump_tfilter()
473 if (TC_H_MIN(tcm->tcm_info) && in tc_dump_tfilter()
474 TC_H_MIN(tcm->tcm_info) != tp->protocol) in tc_dump_tfilter()