summaryrefslogtreecommitdiffstats
path: root/src/vnet/gre/gre.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-04-04 01:28:26 +0200
committerJohn Lo <loj@cisco.com>2017-04-04 21:05:24 +0000
commit63d5bae6401049debadfa9fcc3f18d8118b80441 (patch)
tree8f2d8316df689c32b3dcf93ce6d8d90521649c67 /src/vnet/gre/gre.h
parent615fc61d0937cda001c0ce1682e036e2bb112a74 (diff)
Fix issue with gre protocol registration when running multithreaded
Change-Id: Ic5bd7da08f8a46b548d56516e4633f0b8badf2a1 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/gre/gre.h')
-rw-r--r--src/vnet/gre/gre.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vnet/gre/gre.h b/src/vnet/gre/gre.h
index b6544b9b737..788cba27926 100644
--- a/src/vnet/gre/gre.h
+++ b/src/vnet/gre/gre.h
@@ -159,6 +159,10 @@ typedef struct {
*/
u32 * tunnel_index_by_sw_if_index;
+ /* Sparse vector mapping gre protocol in network byte order
+ to next index. */
+ u16 * next_by_protocol;
+
/* convenience */
vlib_main_t * vlib_main;
vnet_main_t * vnet_main;