if_re locking patch...

From: John-Mark Gurney <gurney_j_at_resnet.uoregon.edu>
Date: Wed, 25 Aug 2004 10:52:50 -0700
To expand upon the patch posted previously, I have cribbed bms's rl
locking, and ported it to re.  This makes the interrupt MPSAFE along
with the rest of the driver.  No more GIANT LOCKED messages for re. :)

Right now I'm doing some testing, and so far I've been able to transfer
over 3gig's of data w/o any problems.

So, please test the patch and let me know how it goes:
http://people.FreeBSD.org/~jmg/if_re.diff

NetGear GA311:
re0: <RealTek 8169S Single-chip Gigabit Ethernet> port 0xd800-0xd8ff mem 0xe8000000-0xe80000ff irq 10 at device 9.0 on pci0
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S media interface> on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
re0: Ethernet address: 00:50:fc:f7:5b:d0

ConnectGear mumble muble (don't have the box with me):
re1: <RealTek 8169S Single-chip Gigabit Ethernet> port 0xe000-0xe0ff mem 0xe8002000-0xe80020ff irq 11 at device 11.0 on pci0
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S media interface> on miibus1
rgephy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
re1: Ethernet address: 00:09:5b:8f:5f:c7

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Wed Aug 25 2004 - 15:52:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:08 UTC