diff options
author | Jiri Pirko <jiri@mellanox.com> | 2020-04-04 18:16:18 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2020-04-06 10:00:32 -0700 |
commit | 342f462efa9f51966c4e92ad5d3e487680ba16d4 (patch) | |
tree | 1939d9a6b87d8dd2ea1ba161afed0dafaff577dc | |
parent | 192e7b3ffa1de43dc65b95b8c19a1e73baa251ff (diff) | |
download | iproute2-342f462efa9f51966c4e92ad5d3e487680ba16d4.tar.gz |
devlink: rename dpipe_counters_enable struct field to dpipe_counters_enabled
To be consistent with the rest of the code and name of netlink
attribute, rename the dpipe_counters_enable struct fielt
to dpipe_counters_enabled.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | devlink/devlink.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devlink/devlink.c b/devlink/devlink.c index 476f8df63..02339ec0b 100644 --- a/devlink/devlink.c +++ b/devlink/devlink.c @@ -286,7 +286,7 @@ struct dl_opts { enum devlink_eswitch_mode eswitch_mode; enum devlink_eswitch_inline_mode eswitch_inline_mode; const char *dpipe_table_name; - bool dpipe_counters_enable; + bool dpipe_counters_enabled; enum devlink_eswitch_encap_mode eswitch_encap_mode; const char *resource_path; uint64_t resource_size; @@ -1336,7 +1336,7 @@ static int dl_argv_parse(struct dl *dl, uint64_t o_required, dl_argv_match(dl, "counters_enabled")) && (o_all & DL_OPT_DPIPE_TABLE_COUNTERS)) { dl_arg_inc(dl); - err = dl_argv_bool(dl, &opts->dpipe_counters_enable); + err = dl_argv_bool(dl, &opts->dpipe_counters_enabled); if (err) return err; o_found |= DL_OPT_DPIPE_TABLE_COUNTERS; @@ -1592,7 +1592,7 @@ static void dl_opts_put(struct nlmsghdr *nlh, struct dl *dl) opts->dpipe_table_name); if (opts->present & DL_OPT_DPIPE_TABLE_COUNTERS) mnl_attr_put_u8(nlh, DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED, - opts->dpipe_counters_enable); + opts->dpipe_counters_enabled); if (opts->present & DL_OPT_ESWITCH_ENCAP_MODE) mnl_attr_put_u8(nlh, DEVLINK_ATTR_ESWITCH_ENCAP_MODE, opts->eswitch_encap_mode); |