BCM 5709 网卡

一台 R610,装完机器,网络通了,平均一个小时没有流量,ssh 就会连接不上,但是还是 ping 的通的,远程卡上去,ssh localhost 也直接显示 connection refused。怀疑跟 5709 网卡的驱动有关,G 可一下,果真是臭名远扬呐,@gnudog 早在 09 年就骂 BCM 了。

$ modinfo  bnx2
filename:       /lib/modules/2.6.32-39-server/kernel/drivers/net/bnx2.ko
firmware:       bnx2/bnx2-rv2p-09ax-5.0.0.j3.fw
firmware:       bnx2/bnx2-rv2p-09-5.0.0.j3.fw
firmware:       bnx2/bnx2-mips-09-5.0.0.j3.fw
firmware:       bnx2/bnx2-rv2p-06-5.0.0.j3.fw
firmware:       bnx2/bnx2-mips-06-5.0.0.j3.fw
version:        2.0.2
license:        GPL
description:    Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver

depends:
vermagic:       2.6.32-39-server SMP mod_unload modversions
parm:           disable_msi:Disable Message Signaled Interrupt (MSI) (int)

下载更新驱动:
# wget http://www.broadcom.com/support/license.php?file=NXII/linux-7.0.36.zip
# unzip linux-7.0.36.zip
# pwd

/usr/local/src/Server/Linux/Driver/netxtreme2-7.0.36/bnx2/src
# make
# make install

$ ll /lib/modules/2.6.32-39-server/updates/bnx2.ko
-r–r–r– 1 root root 247574 2012-03-20 17:17 /lib/modules/2.6.32-39-server/updates/bnx2.ko

重新加载模块,remod 会断网:
# rmmod bnx2
# modprobe bnx2

$ modinfo  bnx2
filename:       /lib/modules/2.6.32-39-server/updates/bnx2.ko
version:        2.1.12b
vermagic:       2.6.32-39-server SMP mod_unload modversions

parm:           disable_msi:Disable Message Signaled Interrupt (MSI) (int)
parm:           stop_on_tx_timeout:For debugging purposes, prevent a chip  reset when a tx timeout occurs (int)

至此没有发生上述现象,根据网友描述,在网卡出现大流量的时候,网卡也会突然宕掉。