On Thu, Apr 28, 2022 at 05:51:57PM +0200, Alexander Bluhm wrote:
> On Wed, Apr 27, 2022 at 12:10:59PM +0200, Claudio Jeker wrote:
> > There is no need to have a rttimer queue per rdomain. The rttimer itself
> > is rdomain aware and so this just make everything more complicated for no
> > gain.
> > 
> > This diff just drops back to a single queue and initializes the queues in
> > ip_init() and the IPv6 counterpart. I have no mrouter setup to test this
> > but it compiles and I see no reason why it would not work.
> 
> I have tested it with regress/sys/netinet/mcast and
> regress/sys/netinet6/mcast6 .  There is a minimal multicast router.
> 
> OK bluhm@ with two nits.
> 
> Could you put these declarations into header files?
> Should these globals have an ip_ prefix?
> 
> >  #ifdef MROUTING
> >  extern int ip_mrtproto;
> > +extern struct rttimer_queue *mrouterq;
> >  #endif
> 
> > +#ifdef MROUTING
> > +extern struct rttimer_queue *mrouter6q;
> > +#endif

If we put them in a header then I think naming them ip_mrouterq and
ip6_mrouterq (at least I think that is the proper naming for IPv6
structs). Also they should go into ip_mroute.h and ip6_mroute.h. 
I will do those changes before I commit.

-- 
:wq Claudio

Reply via email to