]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add ATU flush support.
authorAdrian Chadd <adrian@FreeBSD.org>
Sun, 2 Mar 2014 05:48:56 +0000 (05:48 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Sun, 2 Mar 2014 05:48:56 +0000 (05:48 +0000)
commit4ff2f60db695df9e542a4a0fd0ee56c974857868
tree9898e5a7072b165014e9693f7365e129bf1ee6c0
parent93f5e67e021f548cdfc6f486375302fe5bdcea3d
Add ATU flush support.

The OpenWRT AR8xxx switch support flushes the ATU (address translation
unit) after each port link 'up' status change.  I've modified this to
just flush on any port transition.

Whilst here, bump the number of ports on the AR8327 to 6, rather than
the default of 5.  It's DB120 specific; I'll go and make this configurable
later.

There's some debugging code in here still; I am still debugging whether
this is or isn't working fully.

Tested:

* DB120, AR9344 + AR8327 switch

Obtained from: OpenWRT
sys/dev/etherswitch/arswitch/arswitch.c
sys/dev/etherswitch/arswitch/arswitch_8327.c
sys/dev/etherswitch/arswitch/arswitchvar.h