]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
mrt: mrt looks working both period and from cli proto_updates_jour
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Thu, 20 Jun 2024 09:11:06 +0000 (11:11 +0200)
committerKaterina Kubecova <katerina.kubecova@nic.cz>
Mon, 24 Jun 2024 11:42:27 +0000 (13:42 +0200)
mrt: mrt looks working both period and from cli

fixup

fixup

configure.ac
lib/lockfree.c
nest/proto.c
nest/rt-export.c
proto/bgp/attrs.c
proto/bgp/packets.c
proto/mrt/mrt.c

index c58418cddbb98f6e0317c8cee69540ad9f01a53b..9153d57553b18778abf2fdde9e621c93094a84b4 100644 (file)
@@ -308,7 +308,6 @@ if test "$enable_mpls_kernel" != no ; then
   fi
 fi
 
-# temporarily removed "mrt" from all_protocols to speed up 3.0-alpha1 release
 all_protocols="aggregator bfd babel bgp l3vpn ospf pipe radv rip rpki static mrt"
 all_protocols=`echo $all_protocols | sed 's/ /,/g'`
 
index e45f71851f4978788d906b14b72d71785158255f..6f8e66b9dd713a34a5726077301dc018ade3db6d 100644 (file)
@@ -219,7 +219,6 @@ void lfjour_release(struct lfjour_recipient *r)
 void
 lfjour_announce_now(struct lfjour *j)
 {
-  log("announce now %i", j);
   ASSERT_DIE(birdloop_inside(j->loop));
   settle_cancel(&j->announce_timer);
   ev_postpone(&j->announce_kick_event);
@@ -227,7 +226,6 @@ lfjour_announce_now(struct lfjour *j)
   if (EMPTY_TLIST(lfjour_recipient, &j->recipients))
     return lfjour_schedule_cleanup(j);
 
-  log("walk recipient list");
   WALK_TLIST(lfjour_recipient, r, &j->recipients)
     if (r->event)
       ev_send(r->target, r->event);
index cb4ccc429b6b8292f2aead0c0cb1c34b3866b98c..0cf2795234f0f92df1e7fe49416c2c240b03d08d 100644 (file)
@@ -1252,7 +1252,6 @@ proto_init(struct proto_config *c, struct proto *after)
 
   PD(p, "Initializing%s", p->disabled ? " [disabled]" : "");
 
-  log("try to change state");
   p->id = hmap_first_zero(proto_attributes->proto_id_maker);
   hmap_set(proto_attributes->proto_id_maker, p->id);
   if (p->id >= proto_attributes->length)
@@ -1977,7 +1976,7 @@ protos_build(void)
   proto_pool = rp_new(&root_pool, the_bird_domain.the_bird, "Protocols");
 
   init_proto_journal();
-  create_dummy_recipient();
+  //create_dummy_recipient();
   protos_build_gen();
 }
 
@@ -2277,7 +2276,6 @@ proto_notify_state(struct proto *p, uint state)
   if (state == ps)
     return;
 
-  log("try to change state");
   int old_state = p->proto_state;
   p->proto_state = state;
   p->last_state_change = current_time();
@@ -2779,7 +2777,6 @@ proto_iterate_named(struct symbol *sym, struct protocol *proto, struct proto *ol
 }
 
 
-
 void
 protos_attr_field_init(void)
 {
index a237c6668a47d29655df51d72d96ac61828a6693..252c3d73b748f1c6a611d546273074aa7f4ae1fc 100644 (file)
@@ -340,8 +340,6 @@ rtex_export_subscribe(struct rt_exporter *e, struct rt_export_request *r)
 {
   rt_export_change_state(r, BIT32_ALL(TES_DOWN), TES_FEEDING);
 
-  log("subscribe e=%p r=%p", e, r);
-
   ASSERT_DIE(r->pool);
 
   rt_feeder_subscribe(e, &r->feeder);
@@ -359,7 +357,6 @@ rtex_export_subscribe(struct rt_exporter *e, struct rt_export_request *r)
 void
 rtex_export_unsubscribe(struct rt_export_request *r)
 {
-  log("unsubscribe r=%p", r);
   rt_feeder_unsubscribe(&r->feeder);
 
   if (r->cur)
index 230fb8edb8488136d944b7b29fc0b363e7c72029..5413f00bd262ccd1aebfc05a01bfc655f7230136 100644 (file)
@@ -80,7 +80,6 @@ static union bgp_attr_desc bgp_attr_table[];
 static inline const union bgp_attr_desc *bgp_find_attr_desc(eattr *a)
 {
   const struct ea_class *class = ea_class_find(a->id);
-  log("eattr %i %i, class %i %s, class min = %i, class max = %i", a, a->id, class, class->name, &bgp_attr_table[0].class, &bgp_attr_table[BGP_ATTR_MAX].class );
 
   if ((class < &bgp_attr_table[0].class) || (class >= &bgp_attr_table[BGP_ATTR_MAX].class))
     return NULL;
index d5d295169e294a0b0b7741bc95535427df52cf90..35e59e1a124c09ea4f297ad970371cc1bc62bc0a 100644 (file)
@@ -3429,7 +3429,6 @@ bgp_rx_packet(struct bgp_conn *conn, byte *pkt, uint len)
   conn->bgp->stats.rx_messages++;
   conn->bgp->stats.rx_bytes += len;
 
-  log("conn->bgp->p.mrtdump %i, MD_MESSAGES %i", conn->bgp->p.mrtdump, MD_MESSAGES);
   if (conn->bgp->p.mrtdump & MD_MESSAGES)
     bgp_dump_message(conn, pkt, len);
 
index fc1914d53f9f07006f087b31e7a4c4179fb6d5e2..d8645910e67ece2d58c10914a99ee6ff8e04f841 100644 (file)
@@ -639,7 +639,7 @@ mrt_table_dump_step(struct mrt_table_dump_state *s)
 
     s->table_open = 1;
 
-  step:
+  step: ;
     struct rt_export_feeder feeder = (struct rt_export_feeder) {
       .name = "cli.feeder",
     };
@@ -741,12 +741,11 @@ mrt_dump_cont(struct cli *c)
   c->rover = NULL;
 }
 
-static int
+void
 mrt_dump_cleanup(struct cli *c)
 {
   mrt_table_dump_free(c->rover);
   c->rover = NULL;
-  return 0;
 }
 
 void