]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Register devlink instance at the end devlink configuration
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 25 Sep 2021 11:22:42 +0000 (14:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 15:31:58 +0000 (16:31 +0100)
commitdc4e0356238238e062a85c6db77d6edd741fd295
tree091b1ff8a6f406b95934e39f10fdd1922151b9fe
parent22bb49dfd49da26ce62f3d0e5197d73af10a5b0f
bnxt_en: Register devlink instance at the end devlink configuration

Move devlink_register() to be last command in devlink configuration
sequence, so no user space access will be possible till devlink instance
is fully operable. As part of this change, the devlink_params_publish
call is removed as not needed.

This change fixes forgotten devlink_params_unpublish() too.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c