vxlan-gbp: Add support for vxlan gbp
[vpp.git] / src / plugins / gbp / gbp_policy_dpo.c
index e2af1e6..3a06604 100644 (file)
@@ -248,7 +248,7 @@ gbp_policy_dpo_inline (vlib_main_t * vm,
          key0.gck_src = vnet_buffer2 (b0)->gbp.src_epg;
          key0.gck_dst = gpd0->gpd_epg;
 
-         if (~0 != key0.gck_src)
+         if (EPG_INVALID != key0.gck_src)
            {
              if (PREDICT_FALSE (key0.gck_src == key0.gck_dst))
                {
@@ -455,8 +455,7 @@ gbp_lpm_classify_inline (vlib_main_t * vm,
            {
              gpd0 = gbp_policy_dpo_get_i (dpo0->dpoi_index);
              src_epg0 = gpd0->gpd_epg;
-             vnet_feature_next (vnet_buffer (b0)->sw_if_index[VLIB_RX],
-                                &next0, b0);
+             vnet_feature_next (&next0, b0);
            }
          else
            {