Skip to content

Commit

Permalink
netlink: specs: devlink: add forgotten port function caps enum values
Browse files Browse the repository at this point in the history
Add two enum values that the blamed commit omitted.

Fixes: f2f9dd1 ("netlink: specs: devlink: add the remaining command to generate complete split_ops")
Signed-off-by: Jiri Pirko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
Jiri Pirko authored and kuba-moo committed Nov 2, 2023
1 parent 5ed8499 commit 05f0431
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Documentation/netlink/specs/devlink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ definitions:
name: roce-bit
-
name: migratable-bit
-
name: ipsec-crypto-bit
-
name: ipsec-packet-bit
-
type: enum
name: sb-threshold-type
Expand Down
2 changes: 1 addition & 1 deletion net/devlink/netlink_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const struct nla_policy devlink_dl_port_function_nl_policy[DEVLINK_PORT_FN_ATTR_
[DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR] = { .type = NLA_BINARY, },
[DEVLINK_PORT_FN_ATTR_STATE] = NLA_POLICY_MAX(NLA_U8, 1),
[DEVLINK_PORT_FN_ATTR_OPSTATE] = NLA_POLICY_MAX(NLA_U8, 1),
[DEVLINK_PORT_FN_ATTR_CAPS] = NLA_POLICY_BITFIELD32(3),
[DEVLINK_PORT_FN_ATTR_CAPS] = NLA_POLICY_BITFIELD32(15),
};

const struct nla_policy devlink_dl_selftest_id_nl_policy[DEVLINK_ATTR_SELFTEST_ID_FLASH + 1] = {
Expand Down
2 changes: 2 additions & 0 deletions tools/net/ynl/generated/devlink-user.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ const char *devlink_port_fn_opstate_str(enum devlink_port_fn_opstate value)
static const char * const devlink_port_fn_attr_cap_strmap[] = {
[0] = "roce-bit",
[1] = "migratable-bit",
[2] = "ipsec-crypto-bit",
[3] = "ipsec-packet-bit",
};

const char *devlink_port_fn_attr_cap_str(enum devlink_port_fn_attr_cap value)
Expand Down

0 comments on commit 05f0431

Please sign in to comment.