Lines Matching defs:tcm
344 struct tcmsg *tcm;
348 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
349 tcm = NLMSG_DATA(nlh);
350 tcm->tcm_family = AF_UNSPEC;
351 tcm->tcm__pad1 = 0;
352 tcm->tcm__pad2 = 0;
353 tcm->tcm_ifindex = qdisc_dev(tp->q)->ifindex;
354 tcm->tcm_parent = tp->classid;
355 tcm->tcm_info = TC_H_MAKE(tp->prio, tp->protocol);
357 tcm->tcm_handle = fh;
359 tcm->tcm_handle = 0;
360 if (tp->ops->dump && tp->ops->dump(tp, fh, skb, tcm) < 0)
416 struct tcmsg *tcm = (struct tcmsg *)NLMSG_DATA(cb->nlh);
421 if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm)))
423 if ((dev = __dev_get_by_index(net, tcm->tcm_ifindex)) == NULL)
426 if (!tcm->tcm_parent)
429 q = qdisc_lookup(dev, TC_H_MAJ(tcm->tcm_parent));
436 if (TC_H_MIN(tcm->tcm_parent)) {
437 cl = cops->get(q, tcm->tcm_parent);
449 if (TC_H_MAJ(tcm->tcm_info) &&
450 TC_H_MAJ(tcm->tcm_info) != tp->prio)
452 if (TC_H_MIN(tcm->tcm_info) &&
453 TC_H_MIN(tcm->tcm_info) != tp->protocol)