[Click] Polling on Intel PRO1000 MT Dual Port Server Adapter
Wajdi LOUATI
Wajdi.Louati at int-evry.fr
Tue Oct 14 13:44:21 EDT 2003
Hi all
I've tried to use "Intel PRO/1000 MT Dual Port Server Adapter" gbit cards
(Board IDs A91750-002) with the latest cvs source and a 2.4.21 kernel.I think
that i have some problems with the compilation of the e1000 driver from the
current cvs source:
click/drivers/e1000-4.x/src > make install
gcc -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall
-I/lib/modules/2.4.21/build/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -include
/lib/modules/2.4.21/build/include/linux/modversions.h -c -o e1000_main.o
e1000_main.c
gcc -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall
-I/lib/modules/2.4.21/build/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -include
/lib/modules/2.4.21/build/include/linux/modversions.h -c -o e1000_hw.o e1000_hw.c
gcc -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall
-I/lib/modules/2.4.21/build/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -include
/lib/modules/2.4.21/build/include/linux/modversions.h -c -o e1000_param.o
e1000_param.c
gcc -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall
-I/lib/modules/2.4.21/build/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -include
/lib/modules/2.4.21/build/include/linux/modversions.h -c -o e1000_ethtool.o
e1000_ethtool.c
gcc -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall
-I/lib/modules/2.4.21/build/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -include
/lib/modules/2.4.21/build/include/linux/modversions.h -c -o e1000_proc.o
e1000_proc.c
gcc -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall
-I/lib/modules/2.4.21/build/include -I. -DMODVERSIONS -DEXPORT_SYMTAB -include
/lib/modules/2.4.21/build/include/linux/modversions.h -c -o kcompat.o kcompat.c
**************************************************
** e1000.o built for 2.4.21
** SMP Disabled
** iANS hooks Disabled
** Pro Diagnostics Disabled
**************************************************
gzip -c ../e1000.7 > e1000.7.gz
# remove all old versions of the driver
find /lib/modules/2.4.21 -name e1000.o -exec rm {} \; \
|| true
install -D -m 644 e1000.o /lib/modules/2.4.21/kernel/drivers/net/e1000.o
/sbin/depmod -a || true
depmod: *** Unresolved symbols in
/lib/modules/2.4.21/kernel/drivers/hotplug/ibmphp.o
install -D -m 644 e1000.7.gz /usr/share/man/man7/e1000.7.gz
man -c -P'cat > /dev/null' e1000 || true
****************************************************************************************
So, after insmod e1000.o and ifconfig; If I use the PollDevice (in Click kernel
module), the machine freezes after a very short time.
For exemple:
PC1 ---eth1 ---------eth1---- PC2
PC1: click-install udpgen.click
=> e1000_poll_on
chatter: Starting 1 thred
click: Starting router thred pid 4276
ToDevice eth1 rejected a packet !
(After that the PC1 freezes .... !!!!...... )
PC2: click-install udpcount.click
=> eth1: polling! icr= 0xd0
eth1: polling! icr= 0xd0
eth1: polling! icr= 0xd0
.................
........
However, in file /click/ctr/count contains the value "675951" and
/click/ctr/rate contains "0".
Please help me !
Think you very much
Wajdi
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the click
mailing list