Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Sep 2016 16:57:03 -0700
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        Kubilay Kocak <koobs@FreeBSD.org>
Cc:        Karl Pielorz <kpielorz_lst@tdx.co.uk>, freebsd-net@freebsd.org, Steven Hartland <killing@multiplay.co.uk>
Subject:   Re: lagg Interfaces - don't do Gratuitous ARP?
Message-ID:  <20160921235703.GG1018@cell.glebi.us>
In-Reply-To: <2c62f5f0-3fb4-f513-2a8f-02de3a1d552f@FreeBSD.org>
References:  <0D84203FAAFD0A8E7BBB24A3@[10.12.30.106]> <bc33560b-59bc-01be-6a5d-7994ac121258@multiplay.co.uk> <6E574F1B61786E6032824A88@[10.12.30.106]> <2c62f5f0-3fb4-f513-2a8f-02de3a1d552f@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 10, 2016 at 10:51:36PM +1000, Kubilay Kocak wrote:
K> > <killing@multiplay.co.uk> wrote:
K> > 
K> >> Yes known issue I'm afraid.
K> >> 
K> >> I created a patch set to address this but there where objections so
K> >> it was removed, see the attached which is based on 10.2-RELEASE.
K> > 
K> > Hi,
K> > 
K> > Thanks for the reply, and the comprehensive patch. If I get a chance 
K> > I'll see if I can run it up one of the affected boxes, if I can find
K> > one I can mess around with.
K> > 
K> > Good to know it wasn't just "me" :)
K> > 
K> > Cheers,
K> > 
K> > -Karl
K> 
K> Also see the following review, which was re-opened (after original
K> commit was reverted) after said issues were raised, though I can't see
K> that glebius has commented on it since:
K> 
K> https://reviews.freebsd.org/D4111
K> 
K> 11.0 having this would have been awesome. Maybe (hopefully) 11.1

IMHO, the original patch was absolutely evil hack touching multiple
layers, for the sake of a very special problem.

I think, that in order to kick forwarding table on switches, lagg
should:

- allocate an mbuf itself
- set its source hardware address to its own
- set destination hardware to broadcast
- put some payload in there, to make packet of valid size. Why should it be
  gratuitous ARP? A machine can be running IPv6 only, or may even use whatever
  higher level protocol, e.g. PPPoE. We shouldn't involve IP into this Layer 2
  problem at all.
- Finally, send the prepared mbuf down the lagg member(s).

And please don't hack half of the network stack to achieve that :)

-- 
Totus tuus, Glebius.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160921235703.GG1018>