Date: Fri, 15 Mar 2019 12:16:32 -0500 From: Kyle Evans <kevans@freebsd.org> To: Kristof Provost <kp@freebsd.org> Cc: src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r345192 - head/sys/net Message-ID: <CACNAnaGaOzHu-vtkdW0%2BgnGq1hg75gprRO1jiLfLi7QDDo%2B77w@mail.gmail.com> In-Reply-To: <20190315171421.GD7163@vega.codepro.be> References: <201903151713.x2FHD5sk054038@repo.freebsd.org> <20190315171421.GD7163@vega.codepro.be>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 15, 2019 at 12:14 PM Kristof Provost <kp@freebsd.org> wrote: > > On 2019-03-15 17:13:05 (+0000), Kyle Evans <kevans@FreeBSD.org> wrote: > > Author: kevans > > Date: Fri Mar 15 17:13:05 2019 > > New Revision: 345192 > > URL: https://svnweb.freebsd.org/changeset/base/345192 > > > > Log: > > if_bridge(4): Drop pointless rtflush > > > > At this point, all routes should've already been dropped by removing all > > members from the bridge. This condition is in-fact KASSERT'd in the line > > immediately above where this nop flush was added. > > > > Modified: > > head/sys/net/if_bridge.c > > > > Modified: head/sys/net/if_bridge.c > > ============================================================================== > > --- head/sys/net/if_bridge.c Fri Mar 15 17:04:33 2019 (r345191) > > +++ head/sys/net/if_bridge.c Fri Mar 15 17:13:05 2019 (r345192) > > @@ -2449,6 +2449,22 @@ bridge_input(struct ifnet *ifp, struct mbuf *m) > > } \ > > m->m_pkthdr.rcvif = iface; \ > > BRIDGE_UNLOCK(sc); \ > > + /* \ > > + * These mbufs will not have another chance to get sent \ > > + * to bpf elsewhere in the stack as being received \ > > + * by this interface, because they are coming in over \ > > + * the bridge. They likely have been accounted for \ > > + * when received by the interface that they came from, \ > > + * but this is not enough for other consumers, \ > > + * e.g. dhclient, to be satisfied. \ > > + * \ > > + * rcvif needs to be set on the mbuf here, lest we risk \ > > + * losing the mbuf as a "duplicate" because it's \ > > + * considered outgoing by bpf. \ > > + */ \ > > + if ((iface)->if_type != IFT_BRIDGE && \ > > + (iface)->if_bpf != NULL && (iface) != (ifp)) \ > > + ETHER_BPF_MTAP(iface, m); \ > > I think you didn't intend to commit this yet. > *sigh* wrong tree. =(
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaGaOzHu-vtkdW0%2BgnGq1hg75gprRO1jiLfLi7QDDo%2B77w>