Hello, about whether netmap under e1000e cannot receive the package problem help look? Thank you
lyerwtyr
lyerwtyr at gmail.com
Sun Jun 8 10:38:25 UTC 2014
Luigi Rizzo Hello, thank you for your selfless contributions netmap the fast packet I/O framework,
I have a little problem now, the thing is such, do not know if you can help me to have a look? Thank you
I do the test in the Linux kernel version 3.0.80 below, I discovered that netmap cannot receive packets, machine I is the following
I use the lsmod command output, that I should have been loaded with netmap_lin.ko and e1000e.ko
[root at localhost ~]# lsmod
Module Size Used by
e1000e 20996 0
netmap_lin 253984 1 e1000e
Then I use tcpdump -i eth1 to capture can normally receive all packets
But I tcpdump -i netmap:eth1
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[root at centos examples]# tcpdump -i netmap:eth1
Pcap_netmap_activate device netmap:eth1 priv 0x1bac600 FD 3 ports 0..0
Pcap_netmap_ioctl eth1 IOCTL 0x8913 returns 0
Pcap_netmap_ioctl eth1 IOCTL 0x8914 returns 0
Tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
Listening on netmap:eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
08:25:26.122361 IP 192.168.188.2.netbios-ns > 192.168.188.255.netbios-ns: NBT UDP PACKET (137): QUERY; REQUEST; BROADCAST
08:25:26.871923 IP 192.168.188.2.netbios-ns > 192.168.188.255.netbios-ns: NBT UDP PACKET (137): QUERY; REQUEST; BROADCAST
08:25:27.622484 IP 192.168.188.2.netbios-ns > 192.168.188.255.netbios-ns: NBT UDP PACKET (137): QUERY; REQUEST; BROADCAST
Not receiving any useful package, I am very confused do not know is what reason
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I use the following netmap/example tools pkt-gen test does not receive all the packages below is my operation results
[root at centos examples]#./pkt-gen -i eth1 -f R
30.524029 main [1624] interface is eth1
30.524527 extract_ip_range [275] range is 10.0.0.1:0 to 10.0.0.1:0
30.524550 extract_ip_range [275] range is 10.1.0.1:0 to 10.1.0.1:0
30.676782 main [1807] mapped 334980KB at 0x7fede9c9b000
Receiving from netmap:eth1: 1 queues, 1 threads and 1 cpus.
30.676899 main [1887] Wait 2 secs for PHY reset
32.676992 main [1889] Ready...
32.677044 nm_open [457] overriding ifname eth1 ringid 0x0 flags 0x1
33.678190 receiver_body [1170] waiting for initial packets, poll returns 00
33.678265 main_thread [1421] 0 PPS (0 PKTS in 1001121 USEC)
34.679292 receiver_body [1170] waiting for initial packets, poll returns 00
34.679437 main_thread [1421] 0 PPS (0 PKTS in 1001173 USEC)
35.680347 receiver_body [1170] waiting for initial packets, poll returns 00
35.680595 main_thread [1421] 0 PPS (0 PKTS in 1001158 USEC)
36.681386 receiver_body [1170] waiting for initial packets, poll returns 00
36.681634 main_thread [1421] 0 PPS (0 PKTS in 1001038 USEC)
37.682467 receiver_body [1170] waiting for initial packets, poll returns 00
37.682707 main_thread [1421] 0 PPS (0 PKTS in 1001074 USEC)
38.683502 receiver_body [1170] waiting for initial packets, poll returns 00
38.683870 main_thread [1421] 0 PPS (0 PKTS in 1001163 USEC)
39.684556 receiver_body [1170] waiting for initial packets, poll returns 00
39.685022 main_thread [1421] 0 PPS (0 PKTS in 1001152 USEC)
40.685591 receiver_body [1170] waiting for initial packets, poll returns 00
40.686056 main_thread [1421] 0 PPS (0 PKTS in 1001034 USEC)
41.686632 receiver_body [1170] waiting for initial packets, poll returns 00
41.687193 main_thread [1421] 0 PPS (0 PKTS in 1001137 USEC)
42.687664 receiver_body [1170] waiting for initial packets, poll returns 00
42.688353 main_thread [1421] 0 PPS (0 PKTS in 1001160 USEC)
43.688707 receiver_body [1170] waiting for initial packets, poll returns 00
43.689502 main_thread [1421] 0 PPS (0 PKTS in 1001149 USEC)
44.689751 receiver_body [1170] waiting for initial packets, poll returns 00
44.690549 main_thread [1421] 0 PPS (0 PKTS in 1001047 USEC)
45.690784 receiver_body [1170] waiting for initial packets, poll returns 00
45.691641 main_thread [1421] 0 PPS (0 PKTS in 1001092 USEC)
46.691825 receiver_body [1170] waiting for initial packets, poll returns 00
46.692807 main_thread [1421] 0 PPS (0 PKTS in 1001166 USEC)
47.692857 receiver_body [1170] waiting for initial packets, poll returns 00
47.693962 main_thread [1421] 0 PPS (0 PKTS in 1001154 USEC)
48.693892 receiver_body [1170] waiting for initial packets, poll returns 00
48.694996 main_thread [1421] 0 PPS (0 PKTS in 1001035 USEC)
49.694926 receiver_body [1170] waiting for initial packets, poll returns 00
49.696132 main_thread [1421] 0 PPS (0 PKTS in 1001135 USEC)
50.695958 receiver_body [1170] waiting for initial packets, poll returns 00
50.697295 main_thread [1421] 0 PPS (0 PKTS in 1001164 USEC)
51.696997 receiver_body [1170] waiting for initial packets, poll returns 00
51.698451 main_thread [1421] 0 PPS (0 PKTS in 1001155 USEC)
52.698046 receiver_body [1170] waiting for initi
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I don't know Is it right? E1000e the driver where I didn't use to bag is not normal
But I'm also a machine this machine is installed above the driver is E1000 centos6.2 Linux kernel version is 3.0.80
In this machine above I can use the normal netmap bag.
Thank you, sincerely waiting for your reply, thank you
More information about the freebsd-net
mailing list