Introduce new options on devlink reload API to enable the user to select the reload action required and constrains limits on these actions that he may want to ensure.
Add reload stats to show the history per reload action per limit. Patch 1 adds the new API reload action and reload limit options to devlink reload command. Patch 2 adds pr_out_dev() helper function and modify monitor function to use it. Patch 3 adds reload stats and remote reload stats to devlink dev show. Moshe Shemesh (3): devlink: Add devlink reload action and limit options devlink: Add pr_out_dev() helper function devlink: Add reload stats to dev show devlink/devlink.c | 260 +++++++++++++++++++++++++++++++++-- include/uapi/linux/devlink.h | 2 + 2 files changed, 249 insertions(+), 13 deletions(-) -- 2.18.2