openvswitch: Restructure datapath.c and flow.c
[firefly-linux-kernel-4.4.55.git] / net / openvswitch / datapath.h
index 4d109c176ef3ce2bd7be0419a15839ab4f8a03f1..a6982ef84f20ccbf430ead2b82d8c02760b5a901 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/u64_stats_sync.h>
 
 #include "flow.h"
+#include "flow_table.h"
 #include "vport.h"
 
 #define DP_MAX_PORTS           USHRT_MAX
@@ -62,6 +63,7 @@ struct dp_stats_percpu {
  * ovs_mutex and RCU.
  * @stats_percpu: Per-CPU datapath statistics.
  * @net: Reference to net namespace.
+ * @last_rehash: Timestamp of last rehash.
  *
  * Context: See the comment on locking at the top of datapath.c for additional
  * locking information.
@@ -83,6 +85,7 @@ struct datapath {
        /* Network namespace ref. */
        struct net *net;
 #endif
+       unsigned long last_rehash;
 };
 
 /**