ovs_vport_free(9)
π ovs_vport_free(9) π
okay bestie, welcome to the kernel API manual, section 9, and today's main character is ovs_vport_free β yes that's the (9) up there, we're in kernel-land now π
β¨ NAME β¨
ovs_vport_free β uninitialize and free vport
like, it uninitializes AND frees. a whole double-threat. π₯
πΈ SYNOPSIS πΈ
void ovs_vport_free (struct vport *vport );
that's it. that's the whole vibe. void return, no notes, no cap. π«Ά
π¦ ARGUMENTS π¦
vportβ the vport to free β¨. the one getting un-alived (structurally speaking). the whole point of this function, honestly.
π DESCRIPTION π
so here's the tea π: this frees a vport that was allocated with vport_alloc when it's no longer needed. like when you're done with something and you're like "okay this has served its purpose, thank you for your service, goodbye" β that's this. declutter era. it's giving cleanup arc. π§Ήβ¨
β οΈ but bestie, listen to me β the caller must ensure that an RCU grace period has passed since the last time vport was in a datapath. this is not a suggestion, this is not a "probably fine", this is a hard requirement. if you skip the grace period, that's π behaviour. don't do it. the vibes will not be immaculate, they will be undefined and crashy. π
so yes β free your vport, but do it responsibly. main character energy includes accountability. π
π SEE ALSO π
- Kernel file
./net/openvswitch/vport.c ovs_vport_init(9)ovs_vport_exit(9)ovs_vport_locate(9)ovs_vport_alloc(9)ovs_vport_add(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)
that's the whole friend group right there β the ovs_vport_* gang. go say hi. iykyk πΈπ¦
and that's the page, bestie!! brought to you by ./net/openvswitch, dated October 2026, filed under kernel API manual, section 9 β ovs_vport_free(9) and out β¨ππ«Ά
π¦ 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