sk(4) patch

Michal Belczyk diavul at bsd.krakow.pl
Sun Dec 19 11:59:50 PST 2004


Hello,

here (*) is a patch for sk(4) which is basically made of:

1) a fix taken from OpenBSD that made my onboard NIC work with jumbo
frames enabled
(http://sources.zabbadoz.net/freebsd/patchset/EXPERIMENTAL/if_sk.c-yukon-jumbo-frames.diff)
2) a fix for detecting correctly on-chip RAM size
(http://sources.zabbadoz.net/freebsd/patchset/EXPERIMENTAL/if_sk_88E8001-ram.diff)
3) a feature for printing more VPD data for debugging
4) style cleanups reducing (a bit) diff between DragonFly and FreeBSD (HEAD)
5) replace of [xg]mac_calchash() with sk_[xg]mchash() which use
ether_crc32_[lg]e() instead of rolling own crc calculation functions
6) all other changes i've forgotten to write above :D

Part of dmesg, the board is ASUS A7V880:
skc0: <Marvell Gigabit Ethernet> port 0xe400-0xe4ff mem 0xfe800000-0xfe803fff
irq 11 at device 9.0 on pci0
installed MI handler for int 11
skc0: type = YUKON
skc0: SK_EPROM0 = 0x10
skc0: SRAM size = 0x010000
skc0: Yukon Gigabit Ethernet 10/100/1000Base-T Adapter
skc0: PN: Yukon 88E8001
skc0: EC: Rev. 1.3
skc0: MN: Marvell
skc0: SN: AbCdEfG334454
skc0: chip ver  0xb1
skc0: chip conf 0x73
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
miibus0: <MII bus> on sk0
e1000phy0: <Marvell Semiconductor 88E1000* gigabit PHY> on miibus0
e1000phy0:  1000baseTX-FDX, 100baseTX-FDX, 100baseTX, 10baseTX-FDX,
10baseTX, auto
sk0: MAC address: 00:11:2f:28:86:a8

The box is connected via crossover cable to freebsd-stable with em(4)
inside, jumbo frames are enabled, NFS is still working ;-)

Could anyone take a look at it, please?

(*) http://vanity.bsd.krakow.pl/if_sk.patch


-- 
Michal Belczyk





More information about the Submit mailing list