[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADvbK_cBJ+B3132BfDgz4VHWS3uEw3N+jBZbEoCKtnBYSLf6hQ@mail.gmail.com>
Date: Tue, 3 Jul 2018 19:38:59 +0800
From: Xin Long <lucien.xin@...il.com>
To: David Ahern <dsahern@...il.com>
Cc: network dev <netdev@...r.kernel.org>, davem <davem@...emloft.net>,
Davide Caratti <dcaratti@...hat.com>,
Ido Schimmel <idosch@...sch.org>
Subject: Re: [PATCHv2 net-next 1/2] route: add support for directed broadcast forwarding
On Mon, Jul 2, 2018 at 11:05 PM, David Ahern <dsahern@...il.com> wrote:
> On 7/2/18 12:30 AM, Xin Long wrote:
>> @@ -2143,6 +2149,10 @@ static int devinet_conf_proc(struct ctl_table *ctl, int write,
>> if ((new_value == 0) && (old_value != 0))
>> rt_cache_flush(net);
>>
>> + if (i == IPV4_DEVCONF_BC_FORWARDING - 1 ||
>> + new_value != old_value)
>> + rt_cache_flush(net);
>> +
>
> Shouldn't that be '&&' instead of '||' otherwise you are bumping the fib
> gen id any time the old and new values do not equal regardless of which
> setting is changed.
ah right, It's a copy-paste mistake, sorry
Powered by blists - more mailing lists