Date: Mon, 20 Apr 2015 18:34:30 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Andrew Thompson <thompsa@freebsd.org> Cc: Petko Bordjukov <bordjukov@gmail.com>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: Control over the RSTP functionality of the AR8327 switch engine Message-ID: <CAJ-VmokfKbRN_u2uVJEvep5hp3yS-emUWf86tMnPVEQYg1t56w@mail.gmail.com> In-Reply-To: <CAFAOGNRHN978VRn50aptJfe9RoMEqA1QpbNJCG=8ps4H2xdROw@mail.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> <CAFAOGNRHN978VRn50aptJfe9RoMEqA1QpbNJCG=8ps4H2xdROw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 20 April 2015 at 17:58, Andrew Thompson <thompsa@freebsd.org> wrote: > 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 do= es > 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. Hi, Right. So it wouldn't be that difficult to do; someone just has to go ahead and do it. :-) Petko - having per-port STP awareness on etherswitch would be nice. If anyone here is interested in helping Petko out then please let him know. I'm way too busy doing other things. -adrian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmokfKbRN_u2uVJEvep5hp3yS-emUWf86tMnPVEQYg1t56w>