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-changelog

[Xen-changelog] [linux-2.6.18-xen] netback: disable features not support

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] netback: disable features not supported by netfront
From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
Date: Mon, 17 Oct 2011 09:22:04 +0100
Delivery-date: Mon, 17 Oct 2011 01:22:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Paolo Bonzini <pbonzini@xxxxxxxxxx>
# Date 1318839288 -7200
# Node ID 2d7a321286c99098a59b6e12f0e448f0cb0d6cdd
# Parent  54973d463417845c3272dc875f45a0ac6ab3594c
netback: disable features not supported by netfront

Netback works by first setting all possible features, and then
resetting some after connection, if the front-end didn't negotiate
them. Except that in the old 2.6.18 tree the "resetting" part was
missing. In the pvops tree, this should work correctly through the
fix_features mechanism.

Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Committed-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r 54973d463417 -r 2d7a321286c9 drivers/xen/netback/interface.c
--- a/drivers/xen/netback/interface.c   Thu Oct 13 09:37:50 2011 +0200
+++ b/drivers/xen/netback/interface.c   Mon Oct 17 10:14:48 2011 +0200
@@ -98,8 +98,9 @@
 void netif_set_features(netif_t *netif)
 {
        struct net_device *dev = netif->dev;
-       int features = dev->features;
+       int features;
 
+       features = dev->features & ~(NETIF_F_SG|NETIF_F_TSO|NETIF_F_IP_CSUM);
        if (netif->can_sg)
                features |= NETIF_F_SG;
        if (netif->gso)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] netback: disable features not supported by netfront, Xen patchbot-linux-2 . 6 . 18-xen <=