Date: Tue, 21 Apr 2015 12:58:44 +1200 From: Andrew Thompson <thompsa@FreeBSD.org> To: Petko Bordjukov <bordjukov@gmail.com> Cc: Adrian Chadd <adrian@freebsd.org>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: Control over the RSTP functionality of the AR8327 switch engine Message-ID: <CAFAOGNRHN978VRn50aptJfe9RoMEqA1QpbNJCG=8ps4H2xdROw@mail.gmail.com> In-Reply-To: <1429577274.20150.35.camel@gmail.com> References: <1429572177.20150.28.camel@gmail.com> <CAJ-VmokzcNSLzBSy2v2KQU1oVENM9nautcAwviaRDMO7ZdmztQ@mail.gmail.com> <CAAgmp6ucYsXVh=1nL=yoCCObpA-4OXmFVT4bAjGqp_U%2Bpj2eTQ@mail.gmail.com> <CAJ-Vmo==Vf-9U0znnO9P=uPBwTRh-yA2cvFuU_rR-L0KWFcxZw@mail.gmail.com> <1429576261.20150.31.camel@gmail.com> <CAJ-VmonezF2KGu00eUzKJn9ODRiR_DoMRF9Jy4chpeYHCPcXOQ@mail.gmail.com> <1429577274.20150.35.camel@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 21 April 2015 at 12:47, Petko Bordjukov <bordjukov@gmail.com> wrote: > On =D0=BF=D0=BD, 2015-04-20 at 17:35 -0700, Adrian Chadd wrote: > > Oh. > > > > So, I think the point here is that you can control the port STP mode > > (blocked, learning, active, etc) - you then glue that into the > > existing bridge code in software that's speaking STP. > > > > I don't know if the AR8327 speaks STP/RSTP itself. I know it manages > > its own learning. > > I came to that conclusion as well. It looks like AR8327 only gives you > the tools to control the mode of the port and you have to implement > RSTP yourself. Which brings us back to square one in the other thread. > We already have a standalone RSTP implemetation in net/bridgestp.c, it does not depend on the bridge code. If you look in bridgestp.h there are only a couple of functions you need to call. You could hook in to bstp_set_port_state() to set the chip register to the correct discard/learn/forward state and somehow pass up the PDUs to bstp_input(). Not sure if its worth it but the hard part is done. cheers, Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFAOGNRHN978VRn50aptJfe9RoMEqA1QpbNJCG=8ps4H2xdROw>