• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/package/qca-nss-clients/src/nss_qdisc/

Lines Matching refs:classid

53  *	Returns a pointer to class if classid matches with a class under this qdisc.
55 static inline struct nss_htb_class_data *nss_htb_find_class(u32 classid, struct Qdisc *sch)
59 clc = qdisc_class_find(&q->clhash, classid);
61 nss_qdisc_warning("%s: cannot find class with classid %x in qdisc %x hash\n",
62 __func__, classid, sch->handle);
79 static int nss_htb_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
94 nss_qdisc_trace("%s: configuring htb class %x of qdisc %x\n", __func__, classid, sch->handle);
97 nss_qdisc_error("%s: passing null opt for configuring htb class %x\n", __func__, classid);
104 __func__, classid);
109 nss_qdisc_error("%s: parsed values have no content - htb class %x\n", __func__, classid);
126 * If class with a given classid is not found, we allocate a new one
132 * check for valid classid
134 if (!classid || TC_H_MAJ(classid ^ sch->handle) || nss_htb_find_class(classid, sch)) {
143 nss_qdisc_trace("%s: htb class %x not found. Allocating a new class.\n", __func__, classid);
147 nss_qdisc_error("%s: class allocation failed for classid %x\n", __func__, classid);
151 nss_qdisc_trace("%s: htb class %x allocated - addr %p\n", __func__, classid, cl);
153 cl->sch_common.classid = classid;
171 nss_qdisc_trace("%s: adding class %x to qdisc %x\n", __func__, classid, sch->handle);
178 if (nss_qdisc_init(sch, &cl->nq, NSS_SHAPER_NODE_TYPE_HTB_GROUP, classid) < 0) {
179 nss_qdisc_error("%s: nss_init for htb class %x failed\n", __func__, classid);
198 nss_qdisc_error("%s: nss_attach for class %x failed\n", __func__, classid);
230 nss_qdisc_trace("%s: class %x successfully allocated and initialized\n", __func__, classid);
236 nss_qdisc_error("%s: burst needed if rate is non zero - class %x\n", __func__, classid);
242 __func__, classid);
248 __func__, qopt->priority, classid, NSS_HTB_MAX_PRIORITY);
275 __func__, classid, dev->name, cl->quantum, q->r2q, cl->rate / 8);
279 "Setting quantum to MTU %uB\n", __func__, classid, dev->name, cl->quantum);
303 "quantum = %ubytes priority = %u\n", __func__, classid, cl->rate, cl->burst, cl->crate,
311 nss_qdisc_error("%s: failed to send configure message for htb class %x\n", __func__, classid);
315 nss_qdisc_info("%s: htb class %x configured successfully\n", __func__, classid);
545 * Fetches the class pointer if provided the classid.
547 static unsigned long nss_htb_get_class(struct Qdisc *sch, u32 classid)
549 struct nss_htb_class_data *cl = nss_htb_find_class(classid, sch);
604 tcm->tcm_handle = cl->sch_common.classid;