From: Vikas Gupta vikas.gupta@broadcom.com
[ Upstream commit 574b2bb9692fd3d45ed631ac447176d4679f3010 ]
Add missing devlink_set_features() API for callbacks reload_down and reload_up to function.
Fixes: 228ea8c187d8 ("bnxt_en: implement devlink dev reload driver_reinit") Reviewed-by: Somnath Kotur somnath.kotur@broadcom.com Signed-off-by: Vikas Gupta vikas.gupta@broadcom.com Signed-off-by: Michael Chan michael.chan@broadcom.com Signed-off-by: Jakub Kicinski kuba@kernel.org Signed-off-by: Sasha Levin sashal@kernel.org --- drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c index 6b3d4f4c2a75f..d83be40785b89 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c @@ -1246,6 +1246,7 @@ int bnxt_dl_register(struct bnxt *bp) if (rc) goto err_dl_port_unreg;
+ devlink_set_features(dl, DEVLINK_F_RELOAD); out: devlink_register(dl); return 0;