gbp: do not classify unknown packet as EP packets 85/19985/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 5 Jun 2019 17:11:11 +0000 (19:11 +0200)
committerNeale Ranns <nranns@cisco.com>
Thu, 6 Jun 2019 08:04:10 +0000 (08:04 +0000)
If we fail to classify the packet based on LPM we must not classify it
based on the EP sclass.

Change-Id: Ie234e0c87bd44976c3c57c818359c93f7d99ab84
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/gbp/gbp_classify_node.c

index 1179076..f7124be 100644 (file)
@@ -481,6 +481,10 @@ gbp_lpm_classify_inline (vlib_main_t * vm,
                {
                  ge0 = gbp_endpoint_find_ip6 (ip6_0, fib_index0);
                }
+             else
+               {
+                 ge0 = NULL;
+               }
 
              next0 = vnet_l2_feature_next
                (b0, gscm->l2_input_feat_next[GBP_SRC_CLASSIFY_LPM],