STRUCT VPORT_OPS(9)
π¦ struct vport_ops(9) π¦
hey bestie, welcome to the Kernel API Manual β this is the struct vport_ops(9) page, and it is literally the definition of a type of virtual port. main character struct energy, no cap. π
π NAME π
struct vport_ops β definition of a type of virtual port. periodt.
β¨ SYNOPSIS β¨
okay so here is the whole struct, exactly as it is, bestie:
struct vport_ops {
enum ovs_vport_type type;
struct vport *(*create)(const struct vport_parms *);
void (*destroy)(struct vport *);
int (*send)(struct sk_buff *skb);
struct list_head list;
};
π«Ά Members π«Ά
typeβ theOVS_VPORT_TYPE_*value for this type of virtual port. it's giving "which flavor of vport are we today" β¨createβ create a new vport configured as specified. on success it returns a new vport allocated withovs_vport_alloc; otherwise it returns anERR_PTRvalue. iconic behavior, honestly. πdestroyβ destroys a vport. it must callvport_freeon the vport, but not before an RCU grace period has elapsed. this is the serious part, bestie β do not skip the grace period. πsendβ send a packet on the device.zerofor dropped packets or negative for error. that's the whole mood. π₯listβ list entry in the global list of vport types. it's in the group chat now. π
π SEE ALSO π
- Kernel file
./net/openvswitch/vport.h struct vport_portids(9)struct vport(9)struct vport_parms(9)struct vport_upcall_stats_percpu(9)vport_priv(9)vport_from_priv(9)
signed off from ./net/openvswitch, October 2026, on the struct vport_ops(9) page β slay and read the source, bestie πππ¦
π¦ 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