Date: Sat, 12 May 2012 20:39:41 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r235369 - head/sys/dev/etherswitch/arswitch Message-ID: <201205122039.q4CKdfQS051325@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sat May 12 20:39:41 2012 New Revision: 235369 URL: http://svn.freebsd.org/changeset/base/235369 Log: Document what the flood register setting does. Modified: head/sys/dev/etherswitch/arswitch/arswitch_8316.c Modified: head/sys/dev/etherswitch/arswitch/arswitch_8316.c ============================================================================== --- head/sys/dev/etherswitch/arswitch/arswitch_8316.c Sat May 12 20:38:18 2012 (r235368) +++ head/sys/dev/etherswitch/arswitch/arswitch_8316.c Sat May 12 20:39:41 2012 (r235369) @@ -128,7 +128,14 @@ ar8316_hw_global_setup(struct arswitch_s { arswitch_writereg(sc->sc_dev, 0x38, 0xc000050e); - arswitch_writereg(sc->sc_dev, AR8X16_REG_FLOOD_MASK, 0x003f003f); + + /* + * Flood address table misses to all ports, and enable forwarding of + * broadcasts to the cpu port. + */ + arswitch_writereg(sc->sc_dev, AR8X16_REG_FLOOD_MASK, + AR8X16_FLOOD_MASK_BCAST_TO_CPU | 0x003f003f); + arswitch_modifyreg(sc->sc_dev, AR8X16_REG_GLOBAL_CTRL, AR8316_GLOBAL_CTRL_MTU_MASK, 9018 + 8 + 2);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205122039.q4CKdfQS051325>