Subject: CVS commit: src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: Izumi Tsutsui <tsutsui@netbsd.org>
List: source-changes
Date: 12/16/2006 02:52:17
Module Name:	src
Committed By:	tsutsui
Date:		Sat Dec 16 02:52:17 UTC 2006

Modified Files:
	src/sys/dev/ic: rtl8169.c

Log Message:
Fix and reenable HW VLAN tagging on re(4):
- clear re_vlanctl in DMA descriptors before starting TX and RX
  to avoid stale tags
- use bswap16() rather than be16toh() or htons() on VLAN tag access
  since we already use htole32()

Closes PR kern/32643 and also fixes HW VLAN tagging on big endian machines.


To generate a diff of this commit:
cvs rdiff -r1.73 -r1.74 src/sys/dev/ic/rtl8169.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.