Date: Tue, 12 Jul 2011 13:06:44 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/gem if_gem.c Message-ID: <201107121307.p6CD75LQ066422@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marius 2011-07-12 13:06:44 UTC FreeBSD src repository Modified files: sys/dev/gem if_gem.c Log: SVN rev 223949 on 2011-07-12 13:06:44Z by marius Correct r223648; as gem_init_locked() was calling gem_setladrf(), which sets GEM_MAC_RX_CONFIG based on sc_mac_rxcfg which in turn is initialized to zero, before reading the supposedly default configuration we were effectively not basing sc_mac_rxcfg and thus GEM_MAC_RX_CONFIG on the default configuration. Solve this by calling gem_setladrf() after reading in the default configuration of GEM_MAC_RX_CONFIG. This also avoids the need to distinguish whether gem_setladrf() should enable the RX MAC again and should be slightly more correct as we're now doing all of the RX MAC configuration in the intended step. Revision Changes Path 1.65 +20 -21 src/sys/dev/gem/if_gem.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107121307.p6CD75LQ066422>