cvs commit: src/sys/dev/vge if_vge.c

Ruslan Ermilov ru at FreeBSD.org
Thu Nov 30 13:02:34 PST 2006


ru          2006-11-30 21:01:59 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/vge          if_vge.c 
  Log:
  Fix the hardware VLAN tagging.  TX was broken on little-endian
  machines and both TX and RX were broken on big-endian machines.
  
  The chip design is crazy -- on RX, it puts the 16-bit VLAN tag
  in network byte order (big-endian) in the 32-bit little-endian
  register!
  
  Thanks to John Baldwin for helping me document this change! ;-)
  
  Tested by:      sat (amd64), test program (sparc64)
  PR:             kern/105054
  MFC after:      3 days
  
  Revision  Changes    Path
  1.28      +7 -2      src/sys/dev/vge/if_vge.c


More information about the cvs-src mailing list