devlink: don't allow to change net namespace for FW_ACTIVATE reload action
authorJiri Pirko <jiri@nvidia.com>
Mon, 13 Feb 2023 11:58:36 +0000 (12:58 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 14 Feb 2023 13:04:21 +0000 (14:04 +0100)
commit2edd92570441dd33246210042dc167319a5cf7e3
treee89ee574eda45fdd8f41927794945b0127a4fcec
parentdca5161f9bd052e9e73be90716ffd57e8762c697
devlink: don't allow to change net namespace for FW_ACTIVATE reload action

The change on network namespace only makes sense during re-init reload
action. For FW activation it is not applicable. So check if user passed
an ATTR indicating network namespace change request and forbid it.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20230213115836.3404039-1-jiri@resnulli.us
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/devlink/dev.c