svn commit: r200758 - head/sys/dev/vge

Pyun YongHyeon yongari at FreeBSD.org
Sun Dec 20 19:11:32 UTC 2009


Author: yongari
Date: Sun Dec 20 19:11:32 2009
New Revision: 200758
URL: http://svn.freebsd.org/changeset/base/200758

Log:
  VT6130 datasheet was wrong. If VT6130 receive a jumbo frame the
  controller will split the jumbo frame into multiple RX buffers.
  However it seems the hardware always dma the frame to 8 bytes
  boundary for the split frames. Only the first part of the fragment
  can have 4 byte alignment and subsequent buffers should be 8 bytes
  aligned. Change RX buffer the alignment requirement to 8 bytes from
  4 bytes.

Modified:
  head/sys/dev/vge/if_vgevar.h

Modified: head/sys/dev/vge/if_vgevar.h
==============================================================================
--- head/sys/dev/vge/if_vgevar.h	Sun Dec 20 18:57:43 2009	(r200757)
+++ head/sys/dev/vge/if_vgevar.h	Sun Dec 20 19:11:32 2009	(r200758)
@@ -39,7 +39,7 @@
 #define VGE_TX_RING_ALIGN	64
 #define VGE_RX_RING_ALIGN	64
 #define VGE_MAXTXSEGS		6
-#define VGE_RX_BUF_ALIGN	sizeof(uint32_t)
+#define VGE_RX_BUF_ALIGN	sizeof(uint64_t)
 
 /*
  * VIA Velocity allows 64bit DMA addressing but high 16bits


More information about the svn-src-all mailing list