Skip to content

Commit 05f0431

Browse files
Jiri Pirkokuba-moo
authored andcommitted
netlink: specs: devlink: add forgotten port function caps enum values
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 <jiri@nvidia.com> Link: https://lore.kernel.org/r/20231030161750.110420-1-jiri@resnulli.us Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 5ed8499 commit 05f0431

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Documentation/netlink/specs/devlink.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ definitions:
7171
name: roce-bit
7272
-
7373
name: migratable-bit
74+
-
75+
name: ipsec-crypto-bit
76+
-
77+
name: ipsec-packet-bit
7478
-
7579
type: enum
7680
name: sb-threshold-type

net/devlink/netlink_gen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const struct nla_policy devlink_dl_port_function_nl_policy[DEVLINK_PORT_FN_ATTR_
1515
[DEVLINK_PORT_FUNCTION_ATTR_HW_ADDR] = { .type = NLA_BINARY, },
1616
[DEVLINK_PORT_FN_ATTR_STATE] = NLA_POLICY_MAX(NLA_U8, 1),
1717
[DEVLINK_PORT_FN_ATTR_OPSTATE] = NLA_POLICY_MAX(NLA_U8, 1),
18-
[DEVLINK_PORT_FN_ATTR_CAPS] = NLA_POLICY_BITFIELD32(3),
18+
[DEVLINK_PORT_FN_ATTR_CAPS] = NLA_POLICY_BITFIELD32(15),
1919
};
2020

2121
const struct nla_policy devlink_dl_selftest_id_nl_policy[DEVLINK_ATTR_SELFTEST_ID_FLASH + 1] = {

tools/net/ynl/generated/devlink-user.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ const char *devlink_port_fn_opstate_str(enum devlink_port_fn_opstate value)
121121
static const char * const devlink_port_fn_attr_cap_strmap[] = {
122122
[0] = "roce-bit",
123123
[1] = "migratable-bit",
124+
[2] = "ipsec-crypto-bit",
125+
[3] = "ipsec-packet-bit",
124126
};
125127

126128
const char *devlink_port_fn_attr_cap_str(enum devlink_port_fn_attr_cap value)

0 commit comments

Comments
 (0)