bonding: add bond_create2 API to include gso option
[vpp.git] / src / vnet / fib / fib_entry_src_interpose.c
index 02db391..812b374 100644 (file)
@@ -115,6 +115,20 @@ fib_entry_src_interpose_activate (fib_entry_src_t *src,
                  */
                 src->fes_pl = best_src->fes_pl;
             }
+            else
+            {
+                /*
+                 * the best source won't install so will use a drop
+                 */
+                dpo_proto_t dproto;
+
+                dproto = fib_proto_to_dpo(fib_entry->fe_prefix.fp_proto);
+
+                src->fes_pl =
+                    fib_path_list_create_special(dproto,
+                                                 FIB_PATH_LIST_FLAG_DROP,
+                                                 drop_dpo_get(dproto));
+            }
         }
         else
         {
@@ -207,7 +221,7 @@ fib_entry_src_interpose_deactivate (fib_entry_src_t *src,
              * there is another source for this entry. activate it so it
              * can provide forwarding
              */
-            FIB_ENTRY_SRC_VFT_INVOKE(best_src, fesv_deactivate,
+            FIB_ENTRY_SRC_VFT_INVOKE(fib_entry, best_src, fesv_deactivate,
                                      (best_src, fib_entry));
         }
     }