search for: netbk_change_mtu

Displaying 1 result from an estimated 1 matches for "netbk_change_mtu".

2011 Oct 17
1
[PATCH] netback: disable features not supported by netfront
...hould work correctly through the fix_features mechanism. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> diff --git a/drivers/xen/netback/interface.c b/drivers/xen/netback/interface.c --- a/drivers/xen/netback/interface.c +++ b/drivers/xen/netback/interface.c @@ -98,8 +98,9 @@ static int netbk_change_mtu(struct net_d 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->g...