From: Satish Chowdhury Subject: VF as default interface on dom0 Date: Fri, 6 Nov 2009 06:35:40 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0314355546==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0314355546== Content-Type: multipart/alternative; boundary=0016363b7984756f2e0477a972c9 --0016363b7984756f2e0477a972c9 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am trying to make the VF interface of Intel 82576 dual port card, as default outgoing interface on dom0. Data traffic from VMs (HVM) should go through VF interface on dom0. Issue: Tx traffic (arp request) from VMs goes out through VF on dom0, but Rx traffic (arp reply) is not reaching to VMs. Setup: HP dc7800 VTd machine with Xen 3.4 and 2.6.18-igb as dom0 FC11 2.6.30 kernel as domU-1. Ubuntu 2.6.30 kernel as domU-2. I loaded igbvf-1.0.7 driver(from http://sourceforge.net/projects/e1000/files/)on 2.6.18-igb dom0. Minor change was required, in netdev.c file. Replaced 'alloc_etherdev(X)' with alloc_etherdev_mq(X , 1) Steps: On dom0 #rmmod igb #modprobe igb max_vfs=1 #modprobe igbvf Above steps create eth1, eth2 as PF and eth3, eth4 as VF interfaces. I added following line to default /etc/xen/xend-config.sxp (network-script 'network-bridge netdev=eth3') Then I started xend #xend start eth3 bridge gets created with peth3 as one interface in the bridge. In the hmv config files, changed the bridge name to xenbr3. vif = [ 'type=ioemu, bridge=xenbr3' ] Created two VMs and assigned IP address in same network domain as of VF and PF. Four interfaces tap1.0, vif1.0, tap2.0, vif2.0 get added to the eth3 bridge on dom0. Removed iptable rules 'iptables -F' from dom0, domU-1, domU-2. Observation: Ping from domU-1 to VF and PF ip address works. Ping between domU-1 and domU-2 works. But, ping from domU to another machine on same network on switch doesn't work. The arp broadcast request goes out through VF interface. But the arp reply doesn't reach VF interface, they get routed to PF interface. Why is it so? PF interface(eth1) is not part of the eth3 bridge. If I add eth1 to eth3-bridge, then ping from VMs to other machines on switch works. Is there something I am missing? How to make above experiment to work? Regards, -Satish --0016363b7984756f2e0477a972c9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I am trying to make the VF interface of Intel 82576 dual port ca= rd, as default outgoing interface on dom0. Data traffic from VMs (HVM) shou= ld go through VF interface on dom0.

Issue: Tx traffic (arp request)= from VMs goes out through VF on dom0, but Rx traffic (arp reply) is not re= aching to VMs.


Setup:
=A0 HP dc7800 VTd machine with Xen 3.4 and 2.6.18-igb as = dom0
=A0 FC11 2.6.30 kernel as domU-1.
=A0 Ubuntu 2.6.30 kernel as domU-2.
=A0 I loaded igbvf-1.0.7 driver(from=A0 http://sourceforge.net/project= s/e1000/files/) on 2.6.18-igb dom0. Minor change was required, in netde= v.c file. Replaced 'alloc_etherdev(X)' with alloc_etherdev_mq(X , 1= )
=A0

Steps:

On dom0
#rmmod igb
#modprobe igb max_vfs=3D1
#mo= dprobe igbvf

Above steps create eth1, eth2 as PF and eth3, eth4 as V= F interfaces.

I added following line to default /etc/xen/xend-config= .sxp
(network-script 'network-bridge netdev=3Deth3')

Then I star= ted xend
#xend start
eth3 bridge gets created with peth3 as one inter= face in the bridge.

In the hmv config files, changed the bridge name= to xenbr3.
vif =3D [ 'type=3Dioemu, bridge=3Dxenbr3' ]

Created two VMs and assigned IP address in same network domain as of VF= and PF.
Four interfaces tap1.0, vif1.0, tap2.0, vif2.0 get added to the= eth3 bridge on dom0.

Removed iptable rules 'iptables -F' fr= om dom0, domU-1, domU-2.


Observation:

Ping from domU-1 to VF and PF ip address works.=
Ping between domU-1 and domU-2 works.
But, ping from domU to another= machine on same network on switch doesn't work.

The arp broadc= ast request goes out through VF interface. But the arp reply doesn't re= ach VF interface, they get routed to PF interface. Why is it so?

PF interface(eth1) is not part of the eth3 bridge. If I add eth1 to eth= 3-bridge, then ping from VMs to other machines on switch works.


= Is there something I am missing? How to make above experiment to work?


Regards,
-Satish


--0016363b7984756f2e0477a972c9-- --===============0314355546== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0314355546==--