ovs_packet netlink specification¶OVS packet execution over generic netlink.
Only OVS_PACKET_CMD_EXECUTE is exposed as a genl operation.
OVS_PACKET_CMD_MISS and OVS_PACKET_CMD_ACTION are kernel-to-userspace
upcalls sent via genlmsg_unicast() to the vport’s upcall_pid and have
no associated genl_ops or multicast group.
Several attributes in the attribute set (userdata, egress-tun-key, len) exist for the upcall path and are not used by the EXECUTE operation. For EXECUTE, packet, key, and actions are mandatory (kernel returns -EINVAL without them).
Notify userspace of a flow table miss for a received packet.
1
[packet, key, userdata, actions, egress-tun-key, mru, len, hash]
Notify userspace as requested by an OVS_ACTION_ATTR_USERSPACE action.
2
[packet, key, userdata, actions, egress-tun-key, mru, len, hash]
Apply actions to a packet.
3
[packet, key, actions, probe, mru, hash, upcall-pid]
struct
u32):binary)¶Packet data, from the start of the Ethernet header.
binary)¶Nested OVS_KEY_ATTR_* attributes, extracted flow key. Defined as binary because the key attribute-set belongs to the ovs_flow family spec; cross-spec references are not supported.
binary)¶Nested OVS_ACTION_ATTR_* attributes. Defined as binary for the same reason as key.
binary)¶Opaque userspace cookie from OVS_USERSPACE_ATTR_USERDATA.
binary)¶Nested OVS_TUNNEL_KEY_ATTR_* for output tunnel metadata.
unused)¶unused)¶flag)¶Packet operation is a feature probe, error logging suppressed.
u16)¶Maximum received IP fragment size.
u32)¶Packet size before truncation.
u64)¶Packet hash, low 32 bits are skb hash, upper bits are flags.
u32)¶Netlink PID to use for upcalls during EXECUTE processing.