]> 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)
commitbc544fa5ccdfc659ae24a33fffd1d73bac6be1a3
tree091b1ff8a6f406b95934e39f10fdd1922151b9fe
parent051af6a83951cc4f1857a46d8a65ac26e3265c36
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