summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/aligned_data.h')
-rw-r--r--include/net/aligned_data.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/aligned_data.h b/include/net/aligned_data.h
index cf3329d7c227..5c7badf71f04 100644
--- a/include/net/aligned_data.h
+++ b/include/net/aligned_data.h
@@ -2,6 +2,7 @@
#ifndef _NET_ALIGNED_DATA_H
#define _NET_ALIGNED_DATA_H
+#include <linux/atomic.h>
#include <linux/types.h>
/* Structure holding cacheline aligned fields on SMP builds.
@@ -9,6 +10,7 @@
* attribute to ensure no accidental false sharing can happen.
*/
struct net_aligned_data {
+ atomic64_t net_cookie ____cacheline_aligned_in_smp;
};
extern struct net_aligned_data net_aligned_data;