Lines Matching refs:classid
44 * Returns a pointer to class if classid matches with a class under this qdisc.
46 static inline struct nss_bf_class_data *nss_bf_find_class(u32 classid,
51 clc = qdisc_class_find(&q->clhash, classid);
53 nss_qdisc_warning("%s: Cannot find class with classid %u in qdisc %p hash table %p\n", __func__, classid, sch, &q->clhash);
70 static int nss_bf_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
82 nss_qdisc_info("%s: Changing bf class %u\n", __func__, classid);
94 * If class with a given classid is not found, we allocate a new one
98 nss_qdisc_info("%s: Bf class %u not found. Allocating a new class.\n", __func__, classid);
102 nss_qdisc_error("%s: Class allocation failed for classid %u\n", __func__, classid);
106 nss_qdisc_info("%s: Bf class %u allocated %p\n", __func__, classid, cl);
107 cl->cl_common.classid = classid;
118 nss_qdisc_info("%s: Adding classid %u to qdisc %p hash queue %p\n", __func__, classid, sch, &q->clhash);
125 if (nss_qdisc_init(sch, &cl->nq, NSS_SHAPER_NODE_TYPE_BF_GROUP, classid) < 0) {
126 nss_qdisc_error("%s: Nss init for class %u failed\n", __func__, classid);
146 nss_qdisc_error("%s: Nss attach for class %u failed\n", __func__, classid);
169 nss_qdisc_info("%s: Class %u successfully allocated\n", __func__, classid);
218 nss_qdisc_error("%s: Failed to configure class %u\n", __func__, classid);
222 nss_qdisc_info("%s: Class %u changed successfully\n", __func__, classid);
425 * Fetches the class pointer if provided the classid.
427 static unsigned long nss_bf_get_class(struct Qdisc *sch, u32 classid)
429 struct nss_bf_class_data *cl = nss_bf_find_class(classid, sch);
480 tcm->tcm_handle = cl->cl_common.classid;
703 q->root.cl_common.classid = sch->handle;