[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YXertDP8ouVbdnUt@unreal>
Date: Tue, 26 Oct 2021 10:18:12 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Ido Schimmel <idosch@...sch.org>
Cc: "David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Ido Schimmel <idosch@...lanox.com>,
Jiri Pirko <jiri@...lanox.com>, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org,
syzbot+93d5accfaefceedf43c1@...kaller.appspotmail.com
Subject: Re: [PATCH net-next] netdevsim: Register and unregister devlink
traps on probe/remove device
On Tue, Oct 26, 2021 at 09:51:13AM +0300, Ido Schimmel wrote:
<...>
> >
> > Can you please explain why is it so important to touch devlink SW
> > objects, reallocate them again and again on every reload in mlxsw?
>
> Because that's how reload was defined and implemented. A complete
> reload. We are not changing the semantics 4 years later.
Please put your emotions aside and explain me technically why are you
must to do it?
The proposed semantics was broken for last 4 years, it can even seen as
dead on arrival, because it never worked for us in real production.
So I'm fixing bugs without relation to when they were introduced.
For example, this fix from Jiri [1] for basic design flow was merged almost
two years later after devlink reload was introduced [2], or this patch from
Parav [3] that fixed an issue introduced year before [4].
[1]
commit 5a508a254bed9a2e36a5fb96c9065532a6bf1e9c
Author: Jiri Pirko <jiri@...lanox.com>
Date: Sat Nov 9 11:29:46 2019 +0100
devlink: disallow reload operation during device cleanup
[2]
commit 2d8dc5bbf4e7603747875eb5cadcd67c1fa8b1bb
Author: Arkadi Sharshevsky <arkadis@...lanox.com>
Date: Mon Jan 15 08:59:04 2018 +0100
devlink: Add support for reload
[3]
commit a7b43649507dae4e55ff0087cad4e4dd1c6d5b99
Author: Parav Pandit <parav@...dia.com>
Date: Wed Nov 25 11:16:20 2020 +0200
devlink: Make sure devlink instance and port are in same net namespace
[4]
commit 070c63f20f6c739a3c534555f56c7327536bfcc2
Author: Jiri Pirko <jiri@...lanox.com>
Date: Thu Oct 3 11:49:39 2019 +0200
net: devlink: allow to change namespaces during reload
Thanks
Powered by blists - more mailing lists