(no subject)
Writing [PATCH] netback: disable features not supported by netfront ...
ntent-Transfer-Encoding: 7bit
Subject: [PATCH] netback: disable features not supported by netfront
X-Mercurial-Node: eb896361fc70b60b9a257d0c82e19633a11b9d41
Message-Id: <[email protected]>
User-Agent: Mercurial-patchbomb/1.9.1
Date: Mon, 17 Oct 2011 09:37:42 +0200
From: [email protected]
To: [email protected]
# HG changeset patch
# User Paolo Bonzini <[email protected]> # Date 1318837036 -7200
# Node ID eb896361fc70b60b9a257d0c82e19633a11b9d41 # Parent 3c900d6a5f6a51ff1547f21fef30ab8b92feccc9
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.
drivers/xen/netback/interface.c +2 -1
@@ -98,8 +98,9 @@ static int netbk_change_mtu(struct net_dvoid 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)
On Mon, Oct 17, 2011 at 09:40:49AM +0200, Paolo Bonzini wrote:
Something went wrong with your patchbomb..
anyhow, lets CC Ian here since he is the maintainer.
Quoted 47 lines
Writing [PATCH] netback: disable features not supported by netfront ...
ntent-Transfer-Encoding: 7bit
Subject: [PATCH] netback: disable features not supported by netfront
X-Mercurial-Node:eb896361fc70b60b9a257d0c82e19633a11b9d41
Message-Id: <[email protected]>
User-Agent: Mercurial-patchbomb/1.9.1
Date: Mon, 17 Oct 2011 09:37:42 +0200
From: [email protected]
To: [email protected]# HG changeset patch
# User Paolo Bonzini <[email protected]> # Date 1318837036 -7200
# Node IDeb896361fc70b60b9a257d0c82e19633a11b9d41# Parent3c900d6a5f6a51ff1547f21fef30ab8b92feccc9
netback: disable features not supported by netfrontNetback 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_featuresmechanism.Signed-off-by Paolo Bonzini <[email protected]>drivers/xen/netback/interface.c +2
-1@@ -98,8 +98,9 @@ static int netbk_change_mtu(struct net_dvoid 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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines · Konrad Rzeszutek Wilk
On Mon, Oct 17, 2011 at 09:40:49AM +0200, Paolo Bonzini wrote:
Something went wrong with your patchbomb..
anyhow, lets CC Ian here since he is the maintainer.
This is a 2.6.18-xen patch. I'm not especially interested in that tree -- Jan looks after it though and picked up this patch from the resend.
Ian.
Quoted 48 lines
Quoted 48 lines
Writing [PATCH] netback: disable features not supported by netfront ...
ntent-Transfer-Encoding: 7bit
Subject: [PATCH] netback: disable features not supported by netfront
X-Mercurial-Node:eb896361fc70b60b9a257d0c82e19633a11b9d41
Message-Id: <[email protected]>
User-Agent: Mercurial-patchbomb/1.9.1
Date: Mon, 17 Oct 2011 09:37:42 +0200
From: [email protected]
To: [email protected]# HG changeset patch
# User Paolo Bonzini <[email protected]> # Date 1318837036 -7200
# Node IDeb896361fc70b60b9a257d0c82e19633a11b9d41# Parent3c900d6a5f6a51ff1547f21fef30ab8b92feccc9
netback: disable features not supported by netfrontNetback 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_featuresmechanism.Signed-off-by Paolo Bonzini <[email protected]>drivers/xen/netback/interface.c +2
-1@@ -98,8 +98,9 @@ static int netbk_change_mtu(struct net_dvoid 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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 5 lines · Konrad Rzeszutek Wilk
On Mon, Oct 17, 2011 at 09:40:49AM +0200, Paolo Bonzini wrote:
Something went wrong with your patchbomb..
anyhow, lets CC Ian here since he is the maintainer.
Already resent, and acked by Jan. :)
Paolo