[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <a8ac760c-e05e-e01c-4c84-5883370ba403@nvidia.com>
Date: Mon, 7 Jun 2021 09:16:57 +0300
From: Roi Dayan <roid@...dia.com>
To: David Ahern <dsahern@...il.com>, <netdev@...r.kernel.org>
CC: Paul Blakey <paulb@...dia.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Stephen Hemminger <stephen@...workplumber.org>
Subject: Re: [PATCH iproute2-next v3 1/1] police: Add support for json output
On 2021-06-07 5:48 AM, David Ahern wrote:
> On 6/6/21 12:22 AM, Roi Dayan wrote:
>> diff --git a/tc/m_police.c b/tc/m_police.c
>> index 9ef0e40b861b..560a793245c8 100644
>> --- a/tc/m_police.c
>> +++ b/tc/m_police.c
>> @@ -278,18 +278,19 @@ static int print_police(struct action_util *a, FILE *f, struct rtattr *arg)
>> __u64 rate64, prate64;
>> __u64 pps64, ppsburst64;
>>
>> + print_string(PRINT_ANY, "kind", "%s", "police");
>> if (arg == NULL)
>> return 0;
>>
>> parse_rtattr_nested(tb, TCA_POLICE_MAX, arg);
>>
>> - if (tb[TCA_POLICE_TBF] == NULL) {
>> - fprintf(f, "[NULL police tbf]");
>> - return 0;
>> + if (tb[TCA_POLICE_TBF] == NULL || true) {
>
> why '|| true'? leftover from special casing tests?
>
>
>
oops debug left over. sorry for that. fixing.
Powered by blists - more mailing lists