Commit 574b2bb9 authored by Vikas Gupta's avatar Vikas Gupta Committed by Jakub Kicinski

bnxt_en: set missing reload flag in devlink features

Add missing devlink_set_features() API for callbacks reload_down
and reload_up to function.

Fixes: 228ea8c1 ("bnxt_en: implement devlink dev reload driver_reinit")
Reviewed-by: default avatarSomnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: default avatarVikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7dd3de7c
...@@ -1306,6 +1306,7 @@ int bnxt_dl_register(struct bnxt *bp) ...@@ -1306,6 +1306,7 @@ int bnxt_dl_register(struct bnxt *bp)
if (rc) if (rc)
goto err_dl_port_unreg; goto err_dl_port_unreg;
devlink_set_features(dl, DEVLINK_F_RELOAD);
out: out:
devlink_register(dl); devlink_register(dl);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment