]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: only clean `sp_indiff` when application firmware is unloaded
authorYinjun Zhang <yinjun.zhang@corigine.com>
Thu, 20 Oct 2022 08:14:11 +0000 (09:14 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 22 Oct 2022 05:43:48 +0000 (22:43 -0700)
commita25b055974082f0b4f7347976f7f32dd39d012ed
treec6c2e2cb51a67029c933c0114c56d288609e68e8
parentcbdaf2176157b0a03f1386777096fab1ecdc0bf0
nfp: only clean `sp_indiff` when application firmware is unloaded

Currently `sp_indiff` is cleaned when driver is removed. This will
cause problem in multi-PF/multi-host case, considering one PF is
removed while another is still in use.

Since `sp_indiff` is the application firmware property, it should
only be cleaned when the firmware is unloaded. Now let management
firmware to clean it when necessary, driver only set it.

Fixes: 2b3afc5bc6ec ("nfp: refine the ABI of getting `sp_indiff` info")
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20221020081411.80186-1-simon.horman@corigine.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/nfp_main.c