Bug 140712 - [fxp] fxp driver starts with rxcsum on
Summary: [fxp] fxp driver starts with rxcsum on
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pyun YongHyeon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 01:50 UTC by Jared Mauch
Modified: 2010-03-02 21:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Mauch 2009-11-20 01:50:01 UTC
	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

Fix: 

ifconfig fxp0 -rxcsum
How-To-Repeat: 
	Reboot the system with this hardware installed/used.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-11-20 04:46:50 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 2 Pyun YongHyeon freebsd_committer 2009-11-20 22:03:13 UTC
State Changed
From-To: open->feedback

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 



Comment 3 Pyun YongHyeon freebsd_committer 2009-11-20 22:03:13 UTC
Responsible Changed
From-To: freebsd-net->yongari

Track.
Comment 4 Pyun YongHyeon freebsd_committer 2010-03-02 21:55:02 UTC
State Changed
From-To: feedback->closed

feedback timed out(> 3 months). The fix was already MFCed to 
stable/8 and stable/7.