[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <695c2152-f7d0-43f0-919b-4df23840907d@kernel.org>
Date: Mon, 4 Dec 2023 08:51:50 -0700
From: David Ahern <dsahern@...nel.org>
To: Eric Dumazet <edumazet@...gle.com>,
Stephen Hemminger <stephen@...workplumber.org>
Cc: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Neal Cardwell <ncardwell@...gle.com>, netdev@...r.kernel.org,
eric.dumazet@...il.com
Subject: Re: [PATCH iproute2 3/5] tc: fq: add TCA_FQ_PRIOMAP handling
On 12/4/23 2:19 AM, Eric Dumazet wrote:
> @@ -193,6 +196,48 @@ static int fq_parse_opt(struct qdisc_util *qu, int argc, char **argv,
> pacing = 1;
> } else if (strcmp(*argv, "nopacing") == 0) {
> pacing = 0;
> + } else if (strcmp(*argv, "bands") == 0) {
> + int idx;
> +
> + if (set_priomap) {
> + fprintf(stderr, "Duplicate \"bands\"\n");
> + return -1;
> + }
> + memset(&prio2band, 0, sizeof(prio2band));
> + NEXT_ARG();
> + if (get_integer(&prio2band.bands, *argv, 10)) {
> + fprintf(stderr, "Illegal \"bands\"\n");
> + return -1;
> + }
> + if (prio2band.bands != 3) {
> + fprintf(stderr, "\"bands\" must be 3\n");
> + return -1;
> + }
do you expect number of bands to change in the future? If not, why make
it an option or just a flag?
Powered by blists - more mailing lists