Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

netlink: specs: ovs_vport: align with C codegen capabilities

We started generating C code for OvS a while back, but actually
C codegen only supports fixed headers specified at the family
level right now (schema also allows specifying them per op).
ovs_flow and ovs_datapath already specify the fixed header
at the family level but ovs_vport does it per op.
Move the property, all ops use the same header.

This ensures YNL C sees the correct hdr_len:

const struct ynl_family ynl_ovs_vport_family = {
.name = "ovs_vport",
- .hdr_len = sizeof(struct genlmsghdr),
+ .hdr_len = sizeof(struct genlmsghdr) + sizeof(struct ovs_header),
};

Fixes: 7c59c9c8f202 ("tools: ynl: generate code for ovs families")
Link: https://patch.msgid.link/20250409145541.580674-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+1 -3
+1 -3
Documentation/netlink/specs/ovs_vport.yaml
··· 123 123 124 124 operations: 125 125 name-prefix: ovs-vport-cmd- 126 + fixed-header: ovs-header 126 127 list: 127 128 - 128 129 name: new 129 130 doc: Create a new OVS vport 130 131 attribute-set: vport 131 - fixed-header: ovs-header 132 132 do: 133 133 request: 134 134 attributes: ··· 141 141 name: del 142 142 doc: Delete existing OVS vport from a data path 143 143 attribute-set: vport 144 - fixed-header: ovs-header 145 144 do: 146 145 request: 147 146 attributes: ··· 151 152 name: get 152 153 doc: Get / dump OVS vport configuration and state 153 154 attribute-set: vport 154 - fixed-header: ovs-header 155 155 do: &vport-get-op 156 156 request: 157 157 attributes: