Initialize vxlan-gpe bypass mode 87/7887/4
authorHongjun Ni <hongjun.ni@intel.com>
Thu, 3 Aug 2017 12:34:45 +0000 (20:34 +0800)
committerNeale Ranns <nranns@cisco.com>
Fri, 4 Aug 2017 09:07:34 +0000 (09:07 +0000)
Change-Id: I2a75357d49a971818c8d96d56d184c5d01fbc775
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
src/vnet/vxlan-gpe/vxlan_gpe.c

index fab887a..97bb1b1 100644 (file)
@@ -1200,6 +1200,22 @@ VLIB_CLI_COMMAND (set_interface_ip6_vxlan_gpe_bypass_command, static) = {
 };
 /* *INDENT-ON* */
 
+/* *INDENT-OFF* */
+VNET_FEATURE_INIT (ip4_vxlan_gpe_bypass, static) =
+{
+  .arc_name = "ip4-unicast",
+  .node_name = "ip4-vxlan-gpe-bypass",
+  .runs_before = VNET_FEATURES ("ip4-lookup"),
+};
+
+VNET_FEATURE_INIT (ip6_vxlan_gpe_bypass, static) =
+{
+  .arc_name = "ip6-unicast",
+  .node_name = "ip6-vxlan-gpe-bypass",
+  .runs_before = VNET_FEATURES ("ip6-lookup"),
+};
+/* *INDENT-ON* */
+
 /**
  * @brief Feature init function for VXLAN GPE
  *