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

[Xen-changelog] [linux-2.6.18-xen] netback: disable features not supported by netfront



# 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


 


Rackspace

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