fib: only invoke adj delegate create callback on mcast adj create
[vpp.git] / src / vnet / adj / adj_mcast.c
index a20f61f..573105b 100644 (file)
@@ -82,6 +82,8 @@ adj_mcast_add_or_lock (fib_protocol_t proto,
         */
        vnet_update_adjacency_for_sw_interface(vnm, sw_if_index,
                                                adj_get_index(adj));
+
+       adj_delegate_adj_created(adj);
     }
     else
     {
@@ -89,8 +91,6 @@ adj_mcast_add_or_lock (fib_protocol_t proto,
         adj_lock(adj_get_index(adj));
     }
 
-    adj_delegate_adj_created(adj);
-
     return (adj_get_index(adj));
 }