Skip to contentSkip to conversation

net: openvswitch: add missing .resv_start_op

PATCH Applied Jakub Kicinski 2 participants 2 messages Oct 28, 2022 – Oct 29, 2022

Subsystems (3)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 net: openvswitch: add missing .resv_start_op

I missed one of the families in OvS when annotating .resv_start_op. This triggers the warning added in commit ce48ebdd5651 ("genetlink:
limit the use of validation workarounds to old ops").

Reported-by [email protected]
Fixes 9c5d03d36251 ("genetlink: start to validate reserved header bytes")

---
CC: [email protected]
CC: [email protected]
CC: [email protected]

---
 net/openvswitch/datapath.c | 1 +
 1 file changed, 1 insertion(+)
net/openvswitch/datapath.c +1 -0
index 155263e73512..8b84869eb2ac 100644
@@ -2544,6 +2544,7 @@ struct genl_family dp_vport_genl_family __ro_after_init = {
 	.parallel_ops = true,
 	.small_ops = dp_vport_genl_ops,
 	.n_small_ops = ARRAY_SIZE(dp_vport_genl_ops),
+	.resv_start_op = OVS_VPORT_CMD_SET + 1,
 	.mcgrps = &ovs_dp_vport_multicast_group,
 	.n_mcgrps = 1,
 	.module = THIS_MODULE,
Signature · 1 line
2.37.3
#1 lore raw
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 9 lines · On Thu, 27 Oct 2022 20:25:01 -0700 you wrote:

I missed one of the families in OvS when annotating .resv_start_op. This triggers the warning added in commit ce48ebdd5651 ("genetlink:
limit the use of validation workarounds to old ops").

Reported-by [email protected]
Fixes 9c5d03d36251 ("genetlink: start to validate reserved header bytes")

[...]

Here is the summary with links:
- [net] net: openvswitch: add missing .resv_start_op

    https://git.kernel.org/netdev/net/c/e4ba4554209f

You are awesome, thank you!

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