STRUCT DATAPATH(9)
β¨ struct datapath(9) β¨ β Kernel API Manual
okay bestie, welcome to the Kernel API Manual π β this is the page for struct datapath(9), and it's giving flow-based packet switching main character energy. Let's get into it. π¦
πΈ NAME πΈ
struct datapath β the datapath for flow-based packet switching. Periodt. π
β¨ SYNOPSIS β¨
struct datapath {
struct rcu_head rcu;
struct list_head list_node;
struct flow_table table;
struct hlist_head *ports;
struct dp_stats_percpu __percpu *stats_percpu;
possible_net_t net;
u32 user_features;
u32 max_headroom;
struct dp_meter_table meter_tbl;
struct dp_nlsk_pids *upcall_portids;
};
π Members π
rcuβ the RCU callback head for deferred destruction, lowkey handling the βwe'll clean this up laterβ situation. πlist_nodeβ this struct's element in the globaldpslist, fr fr. π¦tableβ flow table. That's it, that's the table. πportsβ hash table for ports. TheOVSP_LOCALport always exists, no cap. It's protected byovs_mutexand RCU. π₯stats_percpuβ per-CPU datapath statistics, periodt. πnetβ reference to net namespace. πuser_featuresβ bitmap of enabledOVS_DP_F_*features. βmax_headroomβ the maximum headroom of all vports in this datapath; it will be used by all the internal vports in this dp. πmeter_tblβ meter table. πupcall_portidsβ RCU protectedstruct dp_nlsk_pids. π«Ά
π¦ Context π¦
See the comment on locking at the top of datapath.c for additional locking information. For the extra locking tea, that's where you go, bestie. π
π SEE ALSO π
Kernel file ./net/openvswitch/datapath.h, plus struct dp_stats_percpu(9), struct dp_nlsk_pids(9), struct ovs_skb_cb(9), struct dp_upcall_info(9), struct ovs_net(9), and enum ovs_pkt_hash_types(9). Go read the whole squad, iykyk. π
β¨
And that's the whole page, bestie π«Ά β source/version: ./net/openvswitch, dated October 2026. Stay iconic, keep your flows flowin', and may your deferred destruction be very deferred. π
β¨
π¦ 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