Merge branch 'mainstream'
[sliver-openvswitch.git] / datapath / datapath.h
index 5d50dd4..64920de 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "compat.h"
 #include "flow.h"
+#include "flow_table.h"
 #include "vlan.h"
 #include "vport.h"
 
@@ -59,7 +60,7 @@ struct dp_stats_percpu {
  * struct datapath - datapath for flow-based packet switching
  * @rcu: RCU callback head for deferred destruction.
  * @list_node: Element in global 'dps' list.
- * @table: Current flow table.  Protected by ovs_mutex and RCU.
+ * @table: flow table.
  * @ports: Hash table for ports.  %OVSP_LOCAL port always exists.  Protected by
  * ovs_mutex and RCU.
  * @stats_percpu: Per-CPU datapath statistics.
@@ -73,7 +74,7 @@ struct datapath {
        struct list_head list_node;
 
        /* Flow table. */
-       struct flow_table __rcu *table;
+       struct flow_table table;
 
        /* Switch ports. */
        struct hlist_head *ports;