[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f9cf4cca-8e21-4de4-a5ab-c696f40ef385@oracle.com>
Date: Fri, 13 Jun 2025 21:57:46 +0530
From: ALOK TIWARI <alok.a.tiwari@...cle.com>
To: chia-yu.chang@...ia-bell-labs.com, horms@...nel.org,
donald.hunter@...il.com, xandfury@...il.com, netdev@...r.kernel.org,
dave.taht@...il.com, pabeni@...hat.com, jhs@...atatu.com,
kuba@...nel.org, stephen@...workplumber.org, xiyou.wangcong@...il.com,
jiri@...nulli.us, davem@...emloft.net, edumazet@...gle.com,
andrew+netdev@...n.ch, ast@...erby.net, liuhangbin@...il.com,
shuah@...nel.org, linux-kselftest@...r.kernel.org, ij@...nel.org,
ncardwell@...gle.com, koen.de_schepper@...ia-bell-labs.com,
g.white@...lelabs.com, ingemar.s.johansson@...csson.com,
mirja.kuehlewind@...csson.com, cheshire@...le.com, rs.ietf@....at,
Jason_Livingood@...cast.com, vidhi_goel@...le.com
Subject: Re: [PATCH v18 net-next 1/5] sched: Struct definition and parsing of
dualpi2 qdisc
> +static void dualpi2_walk(struct Qdisc *sch, struct qdisc_walker *arg)
> +{
> + unsigned int i;
> +
> + if (arg->stop)
> + return;
> +
> + /* We statically define only 2 queues */
> + for (i = 0; i < 2; i++) {
> + if (arg->count < arg->skip) {
> + arg->count++;
> + continue;
> + }
> + if (arg->fn(sch, i + 1, arg) < 0) {
> + arg->stop = 1;
> + break;
> + }
> + arg->count++;
> + }
> +}
> +
> +/* Minimal class support to handler tc filters */
handler -> handle
> +static const struct Qdisc_class_ops dualpi2_class_ops = {
> + .leaf = dualpi2_leaf,
> + .find = dualpi2_find,
> + .tcf_block = dualpi2_tcf_block,
> + .bind_tcf = dualpi2_bind,
> + .unbind_tcf = dualpi2_unbind,
> + .walk = dualpi2_walk,
> +};
Thanks,
Alok
Powered by blists - more mailing lists