Staging: convert hv network driver to hw_features
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 19 Apr 2011 00:43:20 +0000 (00:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 08:30:40 +0000 (01:30 -0700)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/hv/netvsc_drv.c

index 33973568214fdb44c2547a09f7db2b09970c90e9..aaa81883f0ada8bdee48388a1af0ae50c02be0e3 100644 (file)
@@ -317,8 +317,6 @@ static void netvsc_get_drvinfo(struct net_device *net,
 
 static const struct ethtool_ops ethtool_ops = {
        .get_drvinfo    = netvsc_get_drvinfo,
-       .get_sg         = ethtool_op_get_sg,
-       .set_sg         = ethtool_op_set_sg,
        .get_link       = ethtool_op_get_link,
 };
 
@@ -406,6 +404,7 @@ static int netvsc_probe(struct device *device)
        net->netdev_ops = &device_ops;
 
        /* TODO: Add GSO and Checksum offload */
+       net->hw_features = NETIF_F_SG;
        net->features = NETIF_F_SG;
 
        SET_ETHTOOL_OPS(net, &ethtool_ops);