[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0642f8ab-63be-7db2-bd7c-16f19a3bdddc@kernel.org>
Date: Wed, 30 Nov 2022 23:43:31 -0700
From: David Ahern <dsahern@...nel.org>
To: Daniel Machon <daniel.machon@...rochip.com>, netdev@...r.kernel.org
Cc: stephen@...workplumber.org, petrm@...dia.com,
maxime.chevallier@...tlin.com, vladimir.oltean@....com,
UNGLinuxDriver@...rochip.com
Subject: Re: [PATCH iproute2-next v2 1/2] dcb: add new pcp-prio parameter to
dcb app
On 11/28/22 5:38 AM, Daniel Machon wrote:
> @@ -344,6 +420,17 @@ static int dcb_app_print_key_dscp(__u16 protocol)
> return print_uint(PRINT_ANY, NULL, "%d:", protocol);
> }
>
> +static int dcb_app_print_key_pcp(__u16 protocol)
> +{
> + /* Print in numerical form, if protocol value is out-of-range */
> + if (protocol > 15) {
15 is used in a number of places in this patch. What's the significance
and can you give it a name that identifies the meaning? i.e., protocol
is a u16 why the 15 limit? (and update all places accordingly)
Powered by blists - more mailing lists