cnplab / xennet

Xen optimizations for fast packet I/O
Other
11 stars 7 forks source link

Netfront not Receiving or Sending Packets #12

Open johannes-krude opened 6 years ago

johannes-krude commented 6 years ago

I am trying to reproduce the Linux guest throughput from your ClickOS Paper, but I am unable to receive or send any packets from within the Linux guest.

I used the same software versions as in your paper in hope for not triggering unexpected code paths:

Netback in the Dom0 and netfront in the guest do communicate. I suspect that netfront does not set the interface to the up state as indicated by the last log line. Calling ip link set up dev eth1 does not change this.

guest dmesg:

[    5.463252] mapping 513/513 port 45/44
[    5.466629] netfront_netmap 1024 1024 txd 1 1 rxd
[    5.466636] 509.550935 [2259] netmap_attach             success for eth1
[    6.732471] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready

I am able to communicate from Dom0 to another machine through my Intel X-540 card using your patched ixgbe driver. Neither communication from Dom0 or from the external machine to my guest is possible.

Dom0: vale-ctl -l:

bdg_ctl [98] bridge:0 port:0 vale0:eth1
bdg_ctl [98] bridge:0 port:1 vale0:vif2.1

No matter how many packets I produce from either the guest, Dom0, or the external machine, packet counters in guest ifconfig remain at 0:

eth1      Link encap:Ethernet  HWaddr 00:16:3e:2b:94:37  
             inet addr:192.168.138.2  Bcast:192.168.138.255  Mask:255.255.255.0
             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
             collisions:0 txqueuelen:1000 
             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Am I missing some important step in order to activate the interface in the guest?