aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2008-11-17 01:40:36 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-17 01:40:36 -0500
commit0276b4972e932ea8bf2941dcd37e9caac5652ed7 (patch)
tree4fca22ffd784e7aa8e07338b0d20400cfd678546
parent0a888fd1f6320d1d9318c58de9bca3cef41546d6 (diff)
virtio_net: hook up the set-tso ethtool op
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>
-rw-r--r--drivers/net/virtio_net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index f5207ef21a91..27559c987d47 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -481,6 +481,7 @@ static int virtnet_set_tx_csum(struct net_device *dev, u32 data)
481static struct ethtool_ops virtnet_ethtool_ops = { 481static struct ethtool_ops virtnet_ethtool_ops = {
482 .set_tx_csum = virtnet_set_tx_csum, 482 .set_tx_csum = virtnet_set_tx_csum,
483 .set_sg = ethtool_op_set_sg, 483 .set_sg = ethtool_op_set_sg,
484 .set_tso = ethtool_op_set_tso,
484}; 485};
485 486
486static int virtnet_probe(struct virtio_device *vdev) 487static int virtnet_probe(struct virtio_device *vdev)