From: Mark McLoughlin Date: Mon, 17 Nov 2008 06:40:36 +0000 (-0800) Subject: virtio_net: hook up the set-tso ethtool op X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0276b4972e932ea8bf2941dcd37e9caac5652ed7;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Signed-off-by: Rusty Russell Signed-off-by: David S. Miller --- 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) 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)