• M
    devlink: Add devlink reload limit option · dc64cc7c
    Moshe Shemesh 提交于
    Add reload limit to demand restrictions on reload actions.
    Reload limits supported:
    no_reset: No reset allowed, no down time allowed, no link flap and no
              configuration is lost.
    
    By default reload limit is unspecified and so no constraints on reload
    actions are required.
    
    Some combinations of action and limit are invalid. For example, driver
    can not reinitialize its entities without any downtime.
    
    The no_reset reload limit will have usecase in this patchset to
    implement restricted fw_activate on mlx5.
    
    Have the uapi parameter of reload limit ready for future support of
    multiselection.
    Signed-off-by: NMoshe Shemesh <moshe@mellanox.com>
    Reviewed-by: NJiri Pirko <jiri@nvidia.com>
    Signed-off-by: NJakub Kicinski <kuba@kernel.org>
    dc64cc7c
dev.c 34.4 KB