Re: [PATCH net-next RFC v3 02/14] devlink: Add reload actions counters

2020-09-03 Thread Moshe Shemesh
On 9/2/2020 3:01 AM, Jakub Kicinski wrote: External email: Use caution opening links or attachments On Tue, 1 Sep 2020 22:05:36 +0300 Moshe Shemesh wrote: +void devlink_reload_actions_cnts_update(struct devlink *devlink, unsigned long actions_done) +{ + int action; + + for (action = 0;

Re: [PATCH net-next RFC v3 02/14] devlink: Add reload actions counters

2020-09-01 Thread Jakub Kicinski
On Tue, 1 Sep 2020 22:05:36 +0300 Moshe Shemesh wrote: > >> +void devlink_reload_actions_cnts_update(struct devlink *devlink, unsigned > >> long actions_done) > >> +{ > >> + int action; > >> + > >> + for (action = 0; action < DEVLINK_RELOAD_ACTION_MAX; action++) { > >> + if

Re: [PATCH net-next RFC v3 02/14] devlink: Add reload actions counters

2020-09-01 Thread Moshe Shemesh
On 8/31/2020 1:48 PM, Jiri Pirko wrote: Sun, Aug 30, 2020 at 05:27:22PM CEST, mo...@mellanox.com wrote: Add reload actions counters to hold the history per reload action type. For example, the number of times fw_activate has been done on this device since the driver module was added or if the

Re: [PATCH net-next RFC v3 02/14] devlink: Add reload actions counters

2020-08-31 Thread Jiri Pirko
Sun, Aug 30, 2020 at 05:27:22PM CEST, mo...@mellanox.com wrote: >Add reload actions counters to hold the history per reload action type. >For example, the number of times fw_activate has been done on this >device since the driver module was added or if the firmware activation >was done with or

[PATCH net-next RFC v3 02/14] devlink: Add reload actions counters

2020-08-30 Thread Moshe Shemesh
Add reload actions counters to hold the history per reload action type. For example, the number of times fw_activate has been done on this device since the driver module was added or if the firmware activation was done with or without reset. The function devlink_reload_actions_cnts_update() is