From patchwork Mon Nov 17 03:16:08 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rusty Russell X-Patchwork-Id: 9049 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 911A4DDE0E for ; Mon, 17 Nov 2008 14:17:58 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755320AbYKQDR4 (ORCPT ); Sun, 16 Nov 2008 22:17:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755241AbYKQDRy (ORCPT ); Sun, 16 Nov 2008 22:17:54 -0500 Received: from ozlabs.org ([203.10.76.45]:48438 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755121AbYKQDRw (ORCPT ); Sun, 16 Nov 2008 22:17:52 -0500 Received: from vivaldi.localnet (unknown [150.101.102.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPSA id D9980DDDF5; Mon, 17 Nov 2008 14:17:51 +1100 (EST) From: Rusty Russell To: netdev@vger.kernel.org Subject: [PATCH 2/3] virtio_net: hook up the set-tso ethtool op Date: Mon, 17 Nov 2008 13:46:08 +1030 User-Agent: KMail/1.10.1 (Linux/2.6.27-7-generic; KDE/4.1.2; i686; ; ) Cc: Mark McLoughlin References: <200811171344.57410.rusty@rustcorp.com.au> In-Reply-To: <200811171344.57410.rusty@rustcorp.com.au> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200811171346.09039.rusty@rustcorp.com.au> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Mark McLoughlin 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 --- drivers/net/virtio_net.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index cca6435..79b59cc 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -612,6 +612,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)