From jared@puck.nether.net  Fri Nov 20 01:42:21 2009
Return-Path: <jared@puck.nether.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2894E1065670
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Nov 2009 01:42:21 +0000 (UTC)
	(envelope-from jared@puck.nether.net)
Received: from puck.nether.net (puck.nether.net [IPv6:2001:418:3f4::5])
	by mx1.freebsd.org (Postfix) with ESMTP id EBB5D8FC17
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Nov 2009 01:42:20 +0000 (UTC)
Received: from puck.nether.net (puck.nether.net [204.42.254.5])
	by puck.nether.net (8.14.3/8.12.9) with ESMTP id nAK1hacv082915
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Nov 2009 20:43:36 -0500 (EST)
	(envelope-from jared@puck.nether.net)
Received: (from jared@localhost)
	by puck.nether.net (8.14.3/8.12.9/Submit) id nAK1ha9Z082914;
	Thu, 19 Nov 2009 20:43:36 -0500 (EST)
	(envelope-from jared)
Message-Id: <200911200143.nAK1ha9Z082914@puck.nether.net>
Date: Thu, 19 Nov 2009 20:43:36 -0500 (EST)
From: Jared Mauch <jared@puck.nether.net>
Reply-To: Jared Mauch <jared@puck.nether.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: fxp driver starts with rxcsum on
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         140712
>Category:       kern
>Synopsis:       [fxp] fxp driver starts with rxcsum on
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 20 01:50:01 UTC 2009
>Closed-Date:    Tue Mar 02 21:55:40 UTC 2010
>Last-Modified:  Tue Mar 02 21:55:40 UTC 2010
>Originator:     Jared Mauch
>Release:        FreeBSD 8.0-RC3 i386
>Organization:
Self
>Environment:
FreeBSD npd2.nether.net 8.0-RC3 FreeBSD 8.0-RC3 #0: Tue Nov 10 07:50:36 UTC 2009     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


	
>Description:
	Upon upgrading from 7.0-release to 8.0-RC3 the fxp0 interface came with rxcsum enabled, eg:

# ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=9<RXCSUM,VLAN_MTU>
	ether 00:20:fc:1e:dd:00
	inet 61.120.147.50 netmask 0xfffffffc broadcast 61.120.147.51
	inet6 fe80::220:fcff:fe1e:dd00%fxp0 prefixlen 64 scopeid 0x1 
	media: Ethernet 100baseTX <full-duplex>
	status: active
# sysctl -a | grep fxp
dev.fxp.0.%desc: Intel 82559ER Embedded 10/100 Ethernet
dev.fxp.0.%driver: fxp
dev.fxp.0.%location: slot=4 function=0
dev.fxp.0.%pnpinfo: vendor=0x8086 device=0x1209 subvendor=0x102b subdevice=0x6000 class=0x020000
dev.fxp.0.%parent: pci3
dev.fxp.0.int_delay: 1000
dev.fxp.0.bundle_max: 6
dev.fxp.0.rnr: 0
dev.fxp.0.noflow: 1

	This caused truncated IP packets/messages to be received by the kernel resulting in the machine being unreachable.


# tcpdump -n -i fxp0 -c 3 -s0
fxp0: promiscuous mode enabled
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on fxp0, link-type EN10MB (Ethernet), capture size 65535 bytes
01:52:48.166315 IP truncated-ip - 2 bytes missing! 204.42.254.133 > 61.120.147.50: ICMP echo request, id 33313, seq 5139, length 64
01:52:49.166155 IP truncated-ip - 2 bytes missing! 204.42.254.133 > 61.120.147.50: ICMP echo request, id 33313, seq 5140, length 64
01:52:50.166276 fIP truncated-ip x- 2 bytes missinpg! 204.42.254.1303 > 61.120.147.5:0: ICMP echo req uest, id 33313, pseq 5141, lengthr 64
3 packets coaptured
3 packemts received by fiilter
0 packetss dropped by kerncel
uous mode disabled



>How-To-Repeat:

	Reboot the system with this hardware installed/used.
	
>Fix:

	ifconfig fxp0 -rxcsum
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Nov 20 04:46:50 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140712 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Fri Nov 20 22:03:13 UTC 2009 
State-Changed-Why:  
I belive the fix was committed to HEAD(r197586) and MFCed to 
stable/8 and stable7 but it didn't make it into 8.0-RELEASE. 
To workaound the issue you can disable Rx checksum offload of fxp0. 
#ifconfig fxp0 -rxcsum 
Or download patch from the following URL. 
http://svn.freebsd.org/viewvc/base/head/sys/dev/fxp/if_fxp.c?r1=197586&r2=197575&view=patch 



Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Fri Nov 20 22:03:13 UTC 2009 
Responsible-Changed-Why:  
Track. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140712 
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Tue Mar 2 21:55:02 UTC 2010 
State-Changed-Why:  
feedback timed out(> 3 months). The fix was already MFCed to 
stable/8 and stable/7. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140712 
>Unformatted:
