fxp entering promiscuous mode causing link to bounce

Mike Tancsa mike at sentex.net
Sun Mar 18 01:53:42 UTC 2012


On 3/17/2012 6:58 PM, YongHyeon PYUN wrote:
> On Fri, Mar 16, 2012 at 04:49:54PM -0400, Mike Tancsa wrote:
>>
>> tcpdump -ni fxp0 -c 20
>>
>> fxp0: link state changed to DOWN
>> fxp0: promiscuous mode enabled
>> fxp0: link state changed to UP
>> fxp0: link state changed to DOWN
>> fxp0: promiscuous mode disabled
>> fxp0: link state changed to UP
>>
>> I verified it on 2 different boxes. Is there a way to prevent this from happening ?
>>
> 
> It looks like a regression introduced in flow control support.


Thanks very much, that indeed did fix it!!


0(smtp1)# patch < fxp.p
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/dev/fxp/if_fxp.c
|===================================================================
|--- sys/dev/fxp/if_fxp.c       (revision 233076)
|+++ sys/dev/fxp/if_fxp.c       (working copy)
--------------------------
Patching file sys/dev/fxp/if_fxp.c using Plan A...
Hunk #1 succeeded at 900 (offset -2 lines).
Hunk #2 succeeded at 2808 (offset -2 lines).
Hunk #3 succeeded at 2914 (offset -2 lines).


fxp0: promiscuous mode enabled
fxp0: promiscuous mode disabled

... and not bounced link/dropped packets.

dev.fxp.0.%desc: Intel 82550 Pro/100 Ethernet
dev.fxp.0.%driver: fxp
dev.fxp.0.%location: slot=1 function=0
dev.fxp.0.%pnpinfo: vendor=0x8086 device=0x1229 subvendor=0x8086
subdevice=0x0040 class=0x020000
dev.fxp.0.%parent: pci2
dev.fxp.0.int_delay: 1000
dev.fxp.0.bundle_max: 6
dev.fxp.0.rnr: 0
dev.fxp.0.stats.rx.good_frames: 9265
dev.fxp.0.stats.rx.crc_errors: 0
dev.fxp.0.stats.rx.alignment_errors: 0
dev.fxp.0.stats.rx.rnr_errors: 0
dev.fxp.0.stats.rx.overrun_errors: 0
dev.fxp.0.stats.rx.cdt_errors: 0
dev.fxp.0.stats.rx.shortframes: 0
dev.fxp.0.stats.rx.pause: 0
dev.fxp.0.stats.rx.controls: 0
dev.fxp.0.stats.rx.tco: 0
dev.fxp.0.stats.tx.good_frames: 9978
dev.fxp.0.stats.tx.maxcols: 0
dev.fxp.0.stats.tx.latecols: 0
dev.fxp.0.stats.tx.underruns: 0
dev.fxp.0.stats.tx.lostcrs: 3
dev.fxp.0.stats.tx.deffered: 0
dev.fxp.0.stats.tx.single_collisions: 0
dev.fxp.0.stats.tx.multiple_collisions: 0
dev.fxp.0.stats.tx.total_collisions: 0
dev.fxp.0.stats.tx.pause: 0
dev.fxp.0.stats.tx.tco: 0


	---Mike


-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/


More information about the freebsd-stable mailing list