diff options
Diffstat (limited to 'drivers/net/xen-netfront.c')
-rw-r--r-- | drivers/net/xen-netfront.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 0cfe4ccf92d2..db9a763aaa7f 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c | |||
@@ -1251,6 +1251,14 @@ static struct net_device * __devinit xennet_create_dev(struct xenbus_device *dev | |||
1251 | NETIF_F_GSO_ROBUST; | 1251 | NETIF_F_GSO_ROBUST; |
1252 | netdev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_TSO; | 1252 | netdev->hw_features = NETIF_F_IP_CSUM | NETIF_F_SG | NETIF_F_TSO; |
1253 | 1253 | ||
1254 | /* | ||
1255 | * Assume that all hw features are available for now. This set | ||
1256 | * will be adjusted by the call to netdev_update_features() in | ||
1257 | * xennet_connect() which is the earliest point where we can | ||
1258 | * negotiate with the backend regarding supported features. | ||
1259 | */ | ||
1260 | netdev->features |= netdev->hw_features; | ||
1261 | |||
1254 | SET_ETHTOOL_OPS(netdev, &xennet_ethtool_ops); | 1262 | SET_ETHTOOL_OPS(netdev, &xennet_ethtool_ops); |
1255 | SET_NETDEV_DEV(netdev, &dev->dev); | 1263 | SET_NETDEV_DEV(netdev, &dev->dev); |
1256 | 1264 | ||