Lines Matching refs:classid
32 static inline struct nss_wrr_class_data *nss_wrr_find_class(u32 classid,
37 clc = qdisc_class_find(&q->clhash, classid);
39 nss_qdisc_warning("%s: Cannot find class with classid %u in qdisc %p hash table %p\n", __func__, classid, sch, &q->clhash);
103 static int nss_wrr_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
116 nss_qdisc_info("%s: Changing nss_wrr class %u\n", __func__, classid);
128 * If class with a given classid is not found, we allocate a new one
139 nss_qdisc_info("%s: nss_wrr class %u not found. Allocating a new class.\n", __func__, classid);
143 nss_qdisc_error("%s: Class allocation failed for classid %u\n", __func__, classid);
147 nss_qdisc_info("%s: Bf class %u allocated %p\n", __func__, classid, cl);
148 cl->cl_common.classid = classid;
159 nss_qdisc_info("%s: Adding classid %u to qdisc %p hash queue %p\n", __func__, classid, sch, &q->clhash);
166 if (nss_qdisc_init(sch, &cl->nq, NSS_SHAPER_NODE_TYPE_WRR_GROUP, classid) < 0) {
167 nss_qdisc_error("%s: Nss init for class %u failed\n", __func__, classid);
186 nss_qdisc_error("%s: Nss attach for class %u failed\n", __func__, classid);
208 nss_qdisc_info("%s: Class %u successfully allocated\n", __func__, classid);
251 nss_qdisc_error("%s: Failed to configure class %x\n", __func__, classid);
269 nss_qdisc_info("%s: Class %x changed successfully\n", __func__, classid);
395 static unsigned long nss_wrr_get_class(struct Qdisc *sch, u32 classid)
397 struct nss_wrr_class_data *cl = nss_wrr_find_class(classid, sch);
437 tcm->tcm_handle = cl->cl_common.classid;
502 q->root.cl_common.classid = sch->handle;