Skip to contentSkip to conversation

netlink: specs: devlink: add forgotten port function caps enum values

PATCH Applied Jiri Pirko 2 participants 2 messages Oct 30, 2023 – Nov 2, 2023

Subsystems (4)
lore
Share & tools
lore

Jiri Pirko

author maintainer
#0 lore raw

PATCH 1/1 netlink: specs: devlink: add forgotten port function caps enum values

From: Jiri Pirko <[email protected]>

Add two enum values that the blamed commit omitted.

Fixes f2f9dd164db0 ("netlink: specs: devlink: add the remaining command to generate complete split_ops")
---
 Documentation/netlink/specs/devlink.yaml | 4 ++++
 net/devlink/netlink_gen.c                | 2 +-
 tools/net/ynl/generated/devlink-user.c   | 2 ++
 3 files changed, 7 insertions(+), 1 deletion(-)
Documentation/netlink/specs/devlink.yaml +4 -0
index c6ba4889575a..572d83a414d0 100644
@@ -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
net/devlink/netlink_gen.c +1 -1
index 9cbae0169249..788dfdc498a9 100644
@@ -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] = {
tools/net/ynl/generated/devlink-user.c +2 -0
index 75b744b47986..bc5065bd99b2 100644
@@ -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)
Signature · 1 line
2.41.0
#1 lore raw
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Mon, 30 Oct 2023 17:17:50 +0100 you wrote:

From: Jiri Pirko <[email protected]>

Add two enum values that the blamed commit omitted.

Fixes f2f9dd164db0 ("netlink: specs: devlink: add the remaining command to generate complete split_ops")

[...]

Here is the summary with links:
- [net] netlink: specs: devlink: add forgotten port function caps enum values

    https://git.kernel.org/netdev/net/c/05f0431bb90f

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html