Link to home
Create AccountLog in
Avatar of salmjuh
salmjuh

asked on

How to find out what is the currently used driver for network card?

Hi gurus

I had problem with network card and I downloaded a new module (bcm5700) and istalled it. My system is:
[root@linuxsrv1]# uname -a
Linux linuxsrv1 2.6.10-1.770_FC3smp #1 SMP Thu Feb 24 14:20:06 EST 2005 i686 i686 i386 GNU/Linux

with two Broadcom NetXcard bcm 5704 network card.

My problem was, that some times network died. Server didn't send or receive any data. However it was possible to ping local address and IT was OK.

So I replace TG3 driver with bcm5700 driver.

First make sure the new module is OK:
[root@linuxsrv1]# rpm -q bcm5700
bcm5700-7.4.6a-1


I edited modprobe file:

[root@linuxsrv1]# cat /etc/modprobe.conf
alias eth0 bcm5700
alias eth1 bcm5700

and removed tg3 -driver:
[root@linuxsrv1]#rmmod tg3

So everything should be OK and network should run with newly installed bcm5700 driver.
I changed MTU to support jumbo frames:
[root@linuxsrv1]#ifconfig eth1 mtu 9000

But after this I get message to /var/log/messages:
Mar  8 12:20:48 linuxsrv1 kernel: tg3: eth0: Link is down.
Mar  8 12:20:52 linuxsrv1 kernel: tg3: eth0: Link is up at 1000 Mbps, full duplex.
Mar  8 12:20:52 linuxsrv1 kernel: tg3: eth0: Flow control is on for TX and on for RX.


I take a look what modules are in my system:
[root@linuxsrv1]# lsmod
Module                  Size  Used by
nls_utf8                6081  1
cifs                  181829  1
nfs                   180261  1
nfsd                  185568  17
exportfs                9921  1 nfsd
lockd                  59625  3 nfs,nfsd
md5                     8001  1
ipv6                  236897  20
parport_pc             29701  0
lp                     15405  0
parport                37129  2 parport_pc,lp
autofs4                21829  0
i2c_dev                13249  0
i2c_core               24513  1 i2c_dev
sunrpc                135077  21 nfs,nfsd,lockd
iptable_filter          7489  0
ip_tables              20929  1 iptable_filter
dm_mod                 57925  0
video                  19653  0
button                 10577  0
battery                13253  0
ac                      8773  0
uhci_hcd               33497  0
ehci_hcd               31817  0
hw_random               9429  0
tg3                    79685  0
floppy                 56913  0
ext3                  117961  3
jbd                    57177  1 ext3
cciss                  43429  5
sd_mod                 20545  0
scsi_mod              115777  2 cciss,sd_mod


So the question is, which driver my network cards are now using: tg3 or bcm5700 ? How I can find out the current driver used at the moment?

Thanks advance

-Jussi

Avatar of jlevie
jlevie

According to the lsmod output I'd say the NIC driver is the tg3, since it is loaded but bcm5700 isn't.
Avatar of salmjuh

ASKER

So how I can load bcm5700 at startup and desable tg3 driver ?


-Jussi
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer