]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
virtio_net: hook up the set-tso ethtool op
authorMark McLoughlin <markmc@redhat.com>
Mon, 17 Nov 2008 06:40:36 +0000 (22:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Nov 2008 06:40:36 +0000 (22:40 -0800)
Seems like an oversight that we have set-tx-csum and set-sg hooked
up, but not set-tso.

Also leads to the strange situation that if you e.g. disable tx-csum,
then tso doesn't get disabled.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c

index f5207ef21a913bf72f596683cdc3b7e557363e05..27559c987d478e56d59912ba8e08ea62b39d3fc8 100644 (file)
@@ -481,6 +481,7 @@ static int virtnet_set_tx_csum(struct net_device *dev, u32 data)
 static struct ethtool_ops virtnet_ethtool_ops = {
        .set_tx_csum = virtnet_set_tx_csum,
        .set_sg = ethtool_op_set_sg,
+       .set_tso = ethtool_op_set_tso,
 };
 
 static int virtnet_probe(struct virtio_device *vdev)