[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] [xen/stable-2.6.32.x PATCH 0/5] SR-IOV: Backport VF MAC and VLAN configuration to 2.6.32.x


  • To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
  • From: "Rose, Gregory V" <gregory.v.rose@xxxxxxxxx>
  • Date: Fri, 16 Jul 2010 13:57:14 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc: "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 16 Jul 2010 13:58:25 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcskYmJ2OvjKVA9nQCiw3YXPKLmJhQAxfTxg
  • Thread-topic: [Xen-devel] [xen/stable-2.6.32.x PATCH 0/5] SR-IOV: Backport VF MAC and VLAN configuration to 2.6.32.x

>-----Original Message-----
>From: Jeremy Fitzhardinge [mailto:jeremy@xxxxxxxx]
>Sent: Thursday, July 15, 2010 2:12 PM
>To: Rose, Gregory V
>Cc: 'xen-devel@xxxxxxxxxxxxxxxxxxx'
>Subject: Re: [Xen-devel] [xen/stable-2.6.32.x PATCH 0/5] SR-IOV:
>Backport VF MAC and VLAN configuration to 2.6.32.x
>

>
>I just cherry-picked the original patches onto v2.6.32 and pushed the
>results as the "sr-iov" branch.  Please check it and I'll merge it in
>when you give the all-clear.
>
>Thanks,
>    J

Looks good Jeremy.

I used the latest iproute2 package ip link command to set the VF MAC addresses 
on two 82599EB 10Gig ports named eth3 and eth4:

/usr/sbin/ip link set eth3 vf 0 mac 00:01:02:BA:BB:00
/usr/sbin/ip link set eth3 vf 1 mac 00:01:02:BA:BB:01
/usr/sbin/ip link set eth3 vf 2 mac 00:01:02:BA:BB:02
/usr/sbin/ip link set eth3 vf 3 mac 00:01:02:BA:BB:03

/usr/sbin/ip link set eth4 vf 0 mac 00:01:02:BA:BB:40
/usr/sbin/ip link set eth4 vf 1 mac 00:01:02:BA:BB:41
/usr/sbin/ip link set eth4 vf 2 mac 00:01:02:BA:BB:42
/usr/sbin/ip link set eth4 vf 3 mac 00:01:02:BA:BB:43

I can then show the output with the ip link show command:

ip link show eth3
6: eth3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:1b:21:3c:a3:1c brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:01:02:ba:bb:00
    vf 1 MAC 00:01:02:ba:bb:01
    vf 2 MAC 00:01:02:ba:bb:02
    vf 3 MAC 00:01:02:ba:bb:03

ip link show eth4

7: eth4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:1b:21:3c:a3:1d brd ff:ff:ff:ff:ff:ff
    vf 0 MAC 00:01:02:ba:bb:40
    vf 1 MAC 00:01:02:ba:bb:41
    vf 2 MAC 00:01:02:ba:bb:42
    vf 3 MAC 00:01:02:ba:bb:43

Load the ixgbevf driver in a guest it uses the correct MAC address and passes 
traffic.  I'll do some more thorough testing but so far looking good.

Please let me know when it's merged to your xen/stable-2.6.32.x branch and I'll 
keep working from that tree.  I have other work on deck for further VSI and EVB 
configuration work in the kernel that I'll want to port into your tree after I 
get it accepted upstream.

Thanks,

- Greg



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.