X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Fdatapath.h;h=28ce0dae4ded0d212cbc3a80e36c640f1c66d2c1;hb=f632c8fc817ff5597007a795b51574bddd32563a;hp=e4c6534f7632eed589c3105d28cdf2c30d956a1a;hpb=e1040c772fbebc3abe9e7222f9c540112c4dca81;p=openvswitch diff --git a/datapath/datapath.h b/datapath/datapath.h index e4c6534f..28ce0dae 100644 --- a/datapath/datapath.h +++ b/datapath/datapath.h @@ -59,6 +59,7 @@ struct dp_stats_percpu { /** * struct datapath - datapath for flow-based packet switching + * @rcu: RCU callback head for deferred destruction. * @mutex: Mutual exclusion for ioctls. * @dp_idx: Datapath number (index into the dps[] array in datapath.c). * @ifobj: Represents /sys/class/net//brif. @@ -77,6 +78,7 @@ struct dp_stats_percpu { * sampling a given packet. */ struct datapath { + struct rcu_head rcu; struct mutex mutex; int dp_idx; struct kobject ifobj;