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>
This commit is contained in:
parent
192e7b3ffa
commit
342f462efa
|
|
@ -286,7 +286,7 @@ struct dl_opts {
|
||||||
enum devlink_eswitch_mode eswitch_mode;
|
enum devlink_eswitch_mode eswitch_mode;
|
||||||
enum devlink_eswitch_inline_mode eswitch_inline_mode;
|
enum devlink_eswitch_inline_mode eswitch_inline_mode;
|
||||||
const char *dpipe_table_name;
|
const char *dpipe_table_name;
|
||||||
bool dpipe_counters_enable;
|
bool dpipe_counters_enabled;
|
||||||
enum devlink_eswitch_encap_mode eswitch_encap_mode;
|
enum devlink_eswitch_encap_mode eswitch_encap_mode;
|
||||||
const char *resource_path;
|
const char *resource_path;
|
||||||
uint64_t resource_size;
|
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")) &&
|
dl_argv_match(dl, "counters_enabled")) &&
|
||||||
(o_all & DL_OPT_DPIPE_TABLE_COUNTERS)) {
|
(o_all & DL_OPT_DPIPE_TABLE_COUNTERS)) {
|
||||||
dl_arg_inc(dl);
|
dl_arg_inc(dl);
|
||||||
err = dl_argv_bool(dl, &opts->dpipe_counters_enable);
|
err = dl_argv_bool(dl, &opts->dpipe_counters_enabled);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
o_found |= DL_OPT_DPIPE_TABLE_COUNTERS;
|
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);
|
opts->dpipe_table_name);
|
||||||
if (opts->present & DL_OPT_DPIPE_TABLE_COUNTERS)
|
if (opts->present & DL_OPT_DPIPE_TABLE_COUNTERS)
|
||||||
mnl_attr_put_u8(nlh, DEVLINK_ATTR_DPIPE_TABLE_COUNTERS_ENABLED,
|
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)
|
if (opts->present & DL_OPT_ESWITCH_ENCAP_MODE)
|
||||||
mnl_attr_put_u8(nlh, DEVLINK_ATTR_ESWITCH_ENCAP_MODE,
|
mnl_attr_put_u8(nlh, DEVLINK_ATTR_ESWITCH_ENCAP_MODE,
|
||||||
opts->eswitch_encap_mode);
|
opts->eswitch_encap_mode);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue