WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
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
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C3F79A4.20905@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <43F901BD926A4E43B106BF17856F0755EA8EEBAB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4C3F3FA4.3010203@xxxxxxxx> <43F901BD926A4E43B106BF17856F0755EA961342@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4C3F45E4.2050004@xxxxxxxx> <43F901BD926A4E43B106BF17856F0755EA961372@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4C3F79A4.20905@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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