ovs_vport_add(9)
π ovs_vport_add(9) β the Kernel API Manual, but make it make sense π«Ά
okay so bestie, we're in the Kernel API Manual today, section 9, and the star of the show is ovs_vport_add(9). yes it's giving kernel-internals, yes it's iconic, no you don't need to be scared. let's go π
β¨ NAME β¨
ovs_vport_add β adds a vport device (this one's for the kernel callers out there, iykyk π)
πΈ SYNOPSIS πΈ
struct vport * ovs_vport_add (const struct vport_parms *parms );
like literally that's the whole thing. returns a struct vport *, takes a const struct vport_parms * called parms. slay. β¨
π¦ ARGUMENTS π¦
parmsβ all the info about the new vport we're about to birth into existence. the details, the lore, the whole vibe check for the fresh vport. π
π DESCRIPTION π
so what does it actually do? it creates a brand-new vport with the configuration you specified β and heads up, what that configuration even means is dependent on the device type, so no two device types are gonna read it the same way, k? π
β οΈ non-negotiable, fr fr: ovs_mutex must be held. not "should", not "maybe", must. don't be the main character who forgets the mutex. π
β SEE ALSO β
go look at the kernel file ./net/openvswitch/vport.c (that's the source of truth, bestie) and also these absolutely iconic siblings:
ovs_vport_init(9)ovs_vport_exit(9)ovs_vport_locate(9)ovs_vport_alloc(9)ovs_vport_free(9)ovs_vport_del(9)ovs_vport_get_stats(9)ovs_vport_get_upcall_stats(9)ovs_vport_set_upcall_portids(9)ovs_vport_get_upcall_portids(9)ovs_vport_find_upcall_portid(9)ovs_vport_receive(9)
the whole friend group, together again ππ«Ά
and that's the tea π β courtesy of ./net/openvswitch, dated October 2026. go hold that mutex and stan vports responsibly. mwah ππ
π¦ 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