|
2 | 2 | /* Do not edit directly, auto-generated from: */ |
3 | 3 | /* Documentation/netlink/specs/devlink.yaml */ |
4 | 4 | /* YNL-GEN user source */ |
| 5 | +/* To regenerate run: tools/net/ynl/ynl-regen.sh */ |
5 | 6 |
|
6 | 7 | #include <stdlib.h> |
7 | 8 | #include <string.h> |
@@ -158,6 +159,7 @@ const char *devlink_sb_threshold_type_str(enum devlink_sb_threshold_type value) |
158 | 159 | static const char * const devlink_eswitch_mode_strmap[] = { |
159 | 160 | [0] = "legacy", |
160 | 161 | [1] = "switchdev", |
| 162 | + [2] = "switchdev-inactive", |
161 | 163 | }; |
162 | 164 |
|
163 | 165 | const char *devlink_eswitch_mode_str(enum devlink_eswitch_mode value) |
@@ -911,6 +913,7 @@ const struct ynl_policy_attr devlink_policy[DEVLINK_ATTR_MAX + 1] = { |
911 | 913 | [DEVLINK_ATTR_REGION_DIRECT] = { .name = "region-direct", .type = YNL_PT_FLAG, }, |
912 | 914 | [DEVLINK_ATTR_RATE_TC_BWS] = { .name = "rate-tc-bws", .type = YNL_PT_NEST, .nest = &devlink_dl_rate_tc_bws_nest, }, |
913 | 915 | [DEVLINK_ATTR_HEALTH_REPORTER_BURST_PERIOD] = { .name = "health-reporter-burst-period", .type = YNL_PT_U64, }, |
| 916 | + [DEVLINK_ATTR_PARAM_RESET_DEFAULT] = { .name = "param-reset-default", .type = YNL_PT_FLAG, }, |
914 | 917 | }; |
915 | 918 |
|
916 | 919 | const struct ynl_policy_nest devlink_nest = { |
@@ -4643,6 +4646,8 @@ int devlink_param_set(struct ynl_sock *ys, struct devlink_param_set_req *req) |
4643 | 4646 | ynl_attr_put_u8(nlh, DEVLINK_ATTR_PARAM_TYPE, req->param_type); |
4644 | 4647 | if (req->_present.param_value_cmode) |
4645 | 4648 | ynl_attr_put_u8(nlh, DEVLINK_ATTR_PARAM_VALUE_CMODE, req->param_value_cmode); |
| 4649 | + if (req->_present.param_reset_default) |
| 4650 | + ynl_attr_put(nlh, DEVLINK_ATTR_PARAM_RESET_DEFAULT, NULL, 0); |
4646 | 4651 |
|
4647 | 4652 | err = ynl_exec(ys, nlh, &yrs); |
4648 | 4653 | if (err < 0) |
|
0 commit comments