cscrj / netmap

Automatically exported from code.google.com/p/netmap
0 stars 0 forks source link

examples/bridge connect to host stack on e1000 only see net->host,no host->net #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.download netmap-32e06f9d18bf.tar.gz
2.compile and insert netmap.ko and e1000.ko
3.compile examples/bridge
4.sudo ./bridge -i netmap:eth0 -v -w 10

What is the expected output? What do you see instead?
The console shows the messages like "process_rings [109] net->host sent 1 
packets to 0xb1b03000" and "poll ok [0] ev 1 1 rx 1@60 tx 255, [1] ev 1 0 rx 
0@241 tx 194".
I never see the messages like "host->net" and all messages are like 
"net->host".The space of host stack tx ring is allways 255.Is there a bug? I 
tested it with the wget command and it failed when connecting to 
destination.But I ping the gateway or ping from outside,it allways succeed.

What version of the product are you using? On what operating system?
Ubuntu 12.04
Linux ubuntu 3.2.0-78-generic-pae #113-Ubuntu SMP Tue Mar 3 17:52:29 UTC 2015 
i686 i686 i386 GNU/Linux
Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
e1000 driver

Please provide any additional information below.

Original issue reported on code.google.com by escalati...@gmail.com on 12 Mar 2015 at 9:36

GoogleCodeExporter commented 9 years ago
Hi, the problem is your interface offload option, in freebsd you can disable 
this option using ifconfig em0 -txcsum for example to disable offload for em0. 
for linux you can take a look at https://lwn.net/Articles/484323/ or google 
"disable interface offload linux"

Original comment by kodnevis...@gmail.com on 26 Apr 2015 at 3:40