Re: [PATCH iproute2-net 3/3] devlink: Add reload stats to dev show

2020-12-01 Thread Moshe Shemesh
On 11/29/2020 11:22 PM, David Ahern wrote: On 11/26/20 4:14 AM, Moshe Shemesh wrote: @@ -2975,17 +2996,93 @@ static int cmd_dev_param(struct dl *dl) return -ENOENT; } -static void pr_out_dev(struct dl *dl, struct nlattr **tb) +static void pr_out_action_stats(struct dl *dl, struct

Re: [PATCH iproute2-net 3/3] devlink: Add reload stats to dev show

2020-11-29 Thread David Ahern
On 11/26/20 4:14 AM, Moshe Shemesh wrote: > @@ -2975,17 +2996,93 @@ static int cmd_dev_param(struct dl *dl) > return -ENOENT; > } > > -static void pr_out_dev(struct dl *dl, struct nlattr **tb) > +static void pr_out_action_stats(struct dl *dl, struct nlattr *action_stats) > +{ > + struc

[PATCH iproute2-net 3/3] devlink: Add reload stats to dev show

2020-11-26 Thread Moshe Shemesh
Show reload statistics through devlink dev show using devlink stats flag. The reload statistics show the history per reload action type and limit. Add remote reload statistics to show the history of actions performed due devlink reload commands initiated by remote host. Output examples: $ devlink