STRUCT OVS_NET(9)
π struct ovs_net(9) β the Kernel API Manual page, bestie edition π¦
okay so real talk, this is a page from the Kernel API Manual and it's all about struct ovs_net β literally the per net-namespace data for ovs. that's it. that's the whole vibe. it's the lil backpack every network namespace carries around when it's doing openvswitch stuff π
β¨ NAME β¨
struct ovs_net β Per net-namespace data for ovs. periodt π
πΈ SYNOPSIS πΈ
here's the whole struct, copy it exactly, don't be weird about it:
struct ovs_net {
struct list_head dps;
struct work_struct dp_notify_work;
struct delayed_work masks_rebalance;
#if IS_ENABLED(CONFIG_NETFILTER_CONNCOUNT);
struct ovs_ct_limit_info *ct_limit_info;
struct ovs_ct_limit_info *ct_limit_exit_data;
#endif;
bool xt_label;
};
like yes she has a #if IS_ENABLED(CONFIG_NETFILTER_CONNCOUNT); block with the semicolons and everything, that's just how she is, we respect her π
π«Ά Members π«Ά
okay now the main character energy part β every single member, no skipping:
dpsβ List of datapaths to enable dumping them all out. Protected bygenl_mutex. π lowkey she's the whole point of the struct β this list is how you dump every datapath at once.dp_notify_workβ A work notifier to handle port unregistering. ngl she's doing the unglamorous cleanup work and we love her for it π§Ήmasks_rebalanceβ A work to periodically optimize flow table caches. not her doing self-care on a schedule πβ¨ iconic.ct_limit_infoβ Hash table of conntrack zone connection limits. Protected by RCU; updates and teardown are serialized byovs_mutex. May beNULLduring netns teardown. π¨ bestie pls note thatNULLβ she can literally beNULLwhile the netns is tearing down, so vibe-check before you deref.ct_limit_exit_dataβ CT limit state detached at.pre_exit, freed at.exit. she's in her exit arc πxt_labelβ Whether connlables are configured for the network or not. (connlablesβ that's the original's spelling fr fr, we don't touch it, we just report it π)
π friendly reminder thatct_limit_infoandct_limit_exit_dataonly exist whenCONFIG_NETFILTER_CONNCOUNTis enabled, andct_limit_infomay beNULLduring netns teardown. no cap, guard ya pointers.
π₯ SEE ALSO π₯
go read these next, i'm obsessed with the cross-references:
- Kernel file
./net/openvswitch/datapath.hstruct dp_stats_percpu(9) struct dp_nlsk_pids(9)struct datapath(9)struct ovs_skb_cb(9)struct dp_upcall_info(9)enum ovs_pkt_hash_types(9)
and that's the whole page bestie, you ate that π
cute lil sign-off: this one lives in ./net/openvswitch, and it's dated October 2026 β put that on your calendar, 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