Subject: kern/22582: sys/dev/pci/if_bge.c broken
To: None <gnats-bugs@gnats.netbsd.org>
From: Frank Kardel <kardel@acm.org>
List: netbsd-bugs
Date: 08/23/2003 21:26:57
>Number:         22582
>Category:       kern
>Synopsis:       if_bge.c/bge* interfaces dont't work with hw csum offloading / dont compile with options DEBUG
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 23 19:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Frank Kardel
>Release:        NetBSD 1.6W
>Organization:
	
>Environment:
	
	
System: NetBSD pip 1.6W NetBSD 1.6W (PIP) #0: Sat Aug 23 19:11:17 MEST 2003 kardel@pip:/src/NetBSD/netbsd/sys/arch/i386/compile/PIP i386
Architecture: i386
Machine: i386
>Description:
	sys/dev/pci/if_bge.c doesn't compile woth options DEBUG. The KASSERT macro is called with 1 args (FreeBSD convention).
	NetBSD only take 1 arg.
	When HW checksumming is enabled it is impossible to establish a TCP connection to ssh. The SYN packets are not
	answered. ICMP echo is answered.
	Disabling HW checksumming makes it work again.
	The previous version of if_bge.c was working ok. 
	Seems that some things are still not clean in the last fix to if_bge.c.
>How-To-Repeat:
	Attempt to connect via TCP to a bge box with hw checksumming enabled.
>Fix:
	Workaround: disable HW checksumming for now.
>Release-Note:
>Audit-Trail:
>Unformatted: