• Moshe Shemesh's avatar
    devlink: Add devlink reload limit option · dc64cc7c
    Moshe Shemesh authored
    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: default avatarMoshe Shemesh <moshe@mellanox.com>
    Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    dc64cc7c
core.c 86.3 KB