]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Partially merge r223648, r223648 and r223949 from gem(4):
authormarius <marius@FreeBSD.org>
Tue, 12 Jul 2011 13:22:17 +0000 (13:22 +0000)
committermarius <marius@FreeBSD.org>
Tue, 12 Jul 2011 13:22:17 +0000 (13:22 +0000)
commite11333ee9faef6be17dd23c1f39468740356d3c1
tree029741f02d622a8273069a821fd7a34e2db7713c
parentc7bbea9e52ed3fcbceccae6ae5376ceae238cc67
Partially merge r223648, r223648 and r223949 from gem(4):
- Consistently use the newly introduced sc_mac_rxcfg throughout the driver
  instead of reading the old content of CAS_MAC_RX_CONF.
- Increment if_iqdrops instead of if_ierrors in case of RX buffer allocation
  failure.
- According to the Cassini datasheet the RX MAC should also be disabled in
  cas_setladrf() before changing its configuration.
- Add error messages to gem_disable_{r,t}x() and take advantage of these
  throughout the driver instead of duplicating their functionality all over
  the place.
sys/dev/cas/if_cas.c
sys/dev/cas/if_casvar.h