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: "Rose, Gregory V" <gregory.v.rose@xxxxxxxxx>, "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <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
From: "Rose, Gregory V" <gregory.v.rose@xxxxxxxxx>
Date: Wed, 14 Jul 2010 14:47:43 -0700
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Wed, 14 Jul 2010 14:49:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43F901BD926A4E43B106BF17856F0755EA8EEBAB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acsjl3UmXMksO8XhRpe1xQ1tUyJ4PAABnHzw
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: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-
>bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Rose, Gregory V
>Sent: Wednesday, July 14, 2010 2:00 PM
>To: 'xen-devel@xxxxxxxxxxxxxxxxxxx'
>Subject: [Xen-devel] [xen/stable-2.6.32.x PATCH 0/5] SR-IOV: Backport VF
>MAC and VLAN configuration to 2.6.32.x
>
>This series of patches is a back port of patches originally inluded
>in the Linux 2.6.34 kernel to the xen/2.6.32.x branch.  Authors of
>the original patches are CC'd.
>
>The purpose of the patches is to allow configuration of SR-IOV virtual
>function MAC address and VLAN ID via the physical function driver in
>those drivers that support SR-IOV and export the required netdev ops
>functions.
>
>The commits from the original patches in the Linux 2.6.34 kernel git
>logs are:
>
>commit fb8a0d9d1bfd1e4355f307e86a6da7209eefd5f3
>commit b280da8d54b8d82b52f368a8703b7ada6c1744d5
>commit 95c26df829ba4a25f40595cadb4c9433883cbe28
>commit ebc08a6f47ee76ecad8e9f26c26e6ec9b46ca659
>commit c02db8c6290bb992442fec1407643c94cc414375
>
>You can test that the patches are working right by downloading the Intel
>ixgbe driver Revision 2.0.84.9 from sourceforge.
>
>http://sourceforge.net/projects/e1000/
>
>Signed-off-by: Greg Rose <gregory.v.rose@xxxxxxxxx>
>

I almost forgot something.

Because the kernel in which these patches was accepted was 2.6.34 the 
sourceforge driver I mention above won't include the net netdev ops unless you 
apply this short patch to it.

--- ixgbe-2.0.84.9/src/kcompat.h        2010-06-24 14:05:25.000000000 -0700
+++ ixgbe-2.0.84.9-iplink/src/kcompat.h 2010-07-08 15:06:41.000000000 -0700
@@ -2055,6 +2055,7 @@ extern u16 _kc_skb_tx_hash(struct net_de
 #ifndef HAVE_TRANS_START_IN_QUEUE
 #define HAVE_TRANS_START_IN_QUEUE
 #endif
+#define HAVE_IPLINK_VF_CONFIG
 #endif /* < 2.6.31 */
 
 /*****************************************************************************/

This allows the driver to include the necessary netdev ops on a 2.6.32 kernel.

- Greg

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