From: Flavio Leitner <fbl@redhat.com>
To: Andy Gospodarek <andy@greyhouse.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] bonding: rejoin multicast groups on VLANs
Date: Wed, 29 Sep 2010 17:38:43 -0300 [thread overview]
Message-ID: <20100929203843.GD2864@redhat.com> (raw)
In-Reply-To: <20100929195411.GZ7497@gospo.rdu.redhat.com>
On Wed, Sep 29, 2010 at 03:54:11PM -0400, Andy Gospodarek wrote:
> On Wed, Sep 29, 2010 at 04:35:39PM -0300, Flavio Leitner wrote:
> > On Wed, Sep 29, 2010 at 02:44:13PM -0400, Andy Gospodarek wrote:
> > > On Wed, Sep 29, 2010 at 04:12:24AM -0300, Flavio Leitner wrote:
> > > > It fixes bonding to rejoin multicast groups added
> > > > to VLAN devices on top of bonding when a failover
> > > > happens.
> > > >
> > > > The first packet may be discarded, so the timer
> > > > assure that at least 3 Reports are sent.
> > > >
> > >
> > > Good find, Flavio. Clearly the fact that multicast membership is broken
> > > needs to be fixed, but I would rather not see timers used at all. We
> > > worked hard in the past to eliminate timers for several reasons, so I
> > > would rather see a workqueue used.
> >
> > I noticed that the code is using workqueues now, just thought a
> > simple thing which may run couple times would fit perfectly with
> > a simple timer.
> >
>
> Timers runs in softirq context, so I'd rather not add code that takes
> locks and runs in softirq context.
>
> >
> > > I also don't like retransmitting the membership report 3 times when it
> > > may not be needed. Though many switches can handle it, the cost of
> > > receiving and processing what might be a large list of multicast
> > > addresses every 200ms for 600ms doesn't seem ideal. It also feels like
> > > a hack. :)
> >
> > Definitely a parameter is much better, but I wasn't sure about
> > the patch approach so I was expecting a review like this and then
> > do the refinements needed. Better to post early, right? :)
> >
> > I see your point to change the default to one membership report,
> > but we can't assure during a failover if everything has been
> > received. Also, it isn't supposed to keep failing flooding the
> > network, so I would rather have couple membership reports being
> > send than watch an important multicast application failing.
> >
> > Perhaps 3 is too much, but one sounds too few to me.
> >
> > what you think?
> >
>
> Adding a tunable parameter allows the administrator to decide how many
> is enough. I would rather keep the default at one and add the tunable
> parameter (which needs to be added to bond_sysfs.c to be effective).
>
> I have not heard loud complaints about only sending one since the code
> to send retransmits of membership reports was added a few years ago, so
> I'm inclined to think it is working well for most users (or no one is
> using bonding).
>
> Maybe it would be best to break this into 2 patches. One that simply
> fixes the failover code so it works with VLANs (that could be done
> easily today) and another patch that can add the code to send multiple
> retransmits. Would you be willing to do that?
Sure, I can do it and then start another testing session here.
--
Flavio
prev parent reply other threads:[~2010-09-29 20:38 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-29 7:12 [PATCH] bonding: rejoin multicast groups on VLANs Flavio Leitner
2010-09-29 13:17 ` Flavio Leitner
2010-09-30 20:45 ` [PATCH v2] " Flavio Leitner
2010-10-04 13:24 ` Andy Gospodarek
2010-10-05 22:07 ` Flavio Leitner
2010-10-06 0:23 ` [PATCH 1/3] " Flavio Leitner
2010-10-06 3:28 ` David Miller
2010-10-06 12:12 ` Andy Gospodarek
2010-10-06 0:23 ` [PATCH 2/3] bonding: fix to rejoin multicast groups immediately Flavio Leitner
2010-10-06 3:28 ` David Miller
2010-10-06 0:23 ` [PATCH 3/3] bonding: add retransmit membership reports tunable Flavio Leitner
2010-10-06 3:29 ` David Miller
2010-09-30 20:46 ` [PATCH] " Flavio Leitner
2010-09-29 18:44 ` [PATCH] bonding: rejoin multicast groups on VLANs Andy Gospodarek
2010-09-29 19:35 ` Flavio Leitner
2010-09-29 19:54 ` Andy Gospodarek
2010-09-29 20:38 ` Flavio Leitner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100929203843.GD2864@redhat.com \
--to=fbl@redhat.com \
--cc=andy@greyhouse.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).