]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r207379:
authoryongari <yongari@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 6 May 2010 18:30:46 +0000 (18:30 +0000)
committeryongari <yongari@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 6 May 2010 18:30:46 +0000 (18:30 +0000)
commit9825b504d18f2b73d1078b31575cfff8bb46812f
tree2d265cca6a63c3a7b669a36c305fb6f251078772
parentc69e132513a282ac109f8c4de518ea4d57dd38f6
MFC r207379:
  Enable FCS stripping and padding 10 bytes bit of RX MAC control
  register. Due to lack of SiS190 controller, I'm not sure whether
  this is also applicable to SiS190 so this feature is only activated
  on SiS191 controller.
  The controller can pad 10 bytes before DMAing a received frame to
  RX buffer and received bytes include the padded bytes. This padding
  is very useful on strict-alignment architectures because driver
  does not have to copy received frame to align IP header on 4 bytes
  boundary. It also gives better RX performance on non-strict
  alignment architectures. Special thanks to xclin to give me
  valuable register information. Without his enthusiastic trial and
  errors this wouldn't be even possible.

  While I'm here tighten validity check of received frame. Controller
  clears RDS_CRCOK bit when it received bad CRC frames. xclin found
  that using loop back testing.

  Tested by: xclin <xclin <> cs dot nctu dot edu dot tw >

git-svn-id: svn://svn.freebsd.org/base/stable/8@207712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sge/if_sge.c
sys/dev/sge/if_sgereg.h