ENUM OVS_VPORT_ATTR(9)
π enum ovs_vport_attr(9) π
πΈ NAME πΈ
enum ovs_vport_attr β attributes for %OVS_VPORT_* commands. This is the Kernel API Manual page, bestie π.
β¨ SYNOPSIS β¨
enum ovs_vport_attr {
OVS_VPORT_ATTR_PORT_NO ,
OVS_VPORT_ATTR_TYPE ,
OVS_VPORT_ATTR_NAME ,
OVS_VPORT_ATTR_OPTIONS ,
OVS_VPORT_ATTR_UPCALL_PID ,
OVS_VPORT_ATTR_STATS ,
OVS_VPORT_ATTR_IFINDEX ,
OVS_VPORT_ATTR_NETNSID ,
OVS_VPORT_ATTR_UPCALL_STATS
};
π Constants π
OVS_VPORT_ATTR_PORT_NOβ the 32-bit port number within datapath. periodt.OVS_VPORT_ATTR_TYPEβ the 32-bitOVS_VPORT_TYPE_*constant describing what type of vport this is.OVS_VPORT_ATTR_NAMEβ the name of the vport. For a vport based on a network device, this is the name of the network device. Maximum length isIFNAMSIZ-1bytes plus a null terminator. write that down πOVS_VPORT_ATTR_OPTIONSβ vport-specific configuration information.OVS_VPORT_ATTR_UPCALL_PIDβ the array of Netlink socket pids in userspace among whichOVS_PACKET_CMD_MISSupcalls will be distributed for packets received on this port. If this is a single-element array of value 0, upcalls should not be sent. iykykOVS_VPORT_ATTR_STATSβ astruct ovs_vport_statsgiving statistics for packets sent or received through the vport.OVS_VPORT_ATTR_IFINDEXβ provides the ifindex of a vport, or sets the desired ifindex while creating a new vport with typeOVS_VPORT_TYPE_INTERNAL.OVS_VPORT_ATTR_NETNSIDβ provides the netns id of the vport if itβs not local.OVS_VPORT_ATTR_UPCALL_STATSβ provides upcall statistics for a vport. Contains nestedOVS_VPORT_UPCALL_ATTR_*attributes. nested lore unlocked π¦
π Description π
Okay so hereβs the deal: these attributes follow the struct ovs_header within the Generic Netlink payload for OVS_VPORT_* commands.
For OVS_VPORT_CMD_NEW requests, the OVS_VPORT_ATTR_TYPE and OVS_VPORT_ATTR_NAME attributes are required. OVS_VPORT_ATTR_PORT_NO is optional; if not specified, a free port number is automatically selected. Whether OVS_VPORT_ATTR_OPTIONS is required or optional depends on the type of vport. None of currently supported vport types support options. the way thatβs just how it is π
For other requests, if OVS_VPORT_ATTR_NAME is specified then it is used to look up the vport to operate on; otherwise dp_idx from the struct ovs_header plus OVS_VPORT_ATTR_PORT_NO determine the vport.
π₯ SEE ALSO π₯
- Kernel file
./include/uapi/linux/openvswitch.hβstruct ovs_header(9) enum ovs_datapath_attr(9)enum ovs_packet_attr(9)enum ovs_vport_type(9)enum ovs_vport_upcall_attr(9)enum ovs_frag_type(9)enum ovs_flow_attr(9)enum ovs_sample_attr(9)enum ovs_userspace_attr(9)struct ovs_action_push_mpls(9)struct ovs_action_add_mpls(9)struct ovs_action_push_vlan(9)enum ovs_ct_attr(9)enum ovs_nat_attr(9)struct ovs_action_push_eth(9)enum ovs_check_pkt_len_attr(9)enum ovs_psample_attr(9)enum ovs_action_attr(9)
Thatβs the whole page, bestie π«Ά source/version: ./include/uapi/linux Β· date: October 2026 Β· manual: enum ovs_vport_attr(9) β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms