[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211217130340.67cb775b@hermes.local>
Date: Fri, 17 Dec 2021 13:03:40 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Yevhen Orlov <yevhen.orlov@...ision.eu>
Cc: netdev@...r.kernel.org,
Volodymyr Mytnyk <volodymyr.mytnyk@...ision.eu>,
Taras Chornyi <taras.chornyi@...ision.eu>,
Mickey Rachamim <mickeyr@...vell.com>,
Serhiy Pshyk <serhiy.pshyk@...ision.eu>,
Taras Chornyi <tchornyi@...vell.com>,
Oleksandr Mazur <oleksandr.mazur@...ision.eu>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 6/6] net: marvell: prestera: Implement initial
inetaddr notifiers
On Fri, 17 Dec 2021 21:54:38 +0200
Yevhen Orlov <yevhen.orlov@...ision.eu> wrote:
> +/* This util to be used, to convert kernel rules for default vr in hw_vr */
> +static u32 prestera_fix_tb_id(u32 tb_id)
> +{
> + if (tb_id == RT_TABLE_UNSPEC ||
> + tb_id == RT_TABLE_LOCAL ||
> + tb_id == RT_TABLE_DEFAULT)
> + return tb_id = RT_TABLE_MAIN;
That is a useless assignment why?
Powered by blists - more mailing lists