GBP: fixes for l3-out routing
[vpp.git] / src / plugins / gbp / gbp_classify_node.c
index 9d9e293..1179076 100644 (file)
@@ -516,6 +516,10 @@ gbp_lpm_classify_inline (vlib_main_t * vm,
          lb0 = load_balance_get (lbi0);
          dpo0 = load_balance_get_bucket_i (lb0, 0);
 
+         /* all packets from an external network should not be learned by the
+          * reciever. so set the Do-not-learn bit here */
+         vnet_buffer2 (b0)->gbp.flags = VXLAN_GBP_GPFLAGS_D;
+
          if (gbp_policy_dpo_type == dpo0->dpoi_type)
            {
              gpd0 = gbp_policy_dpo_get (dpo0->dpoi_index);