From: Herbert Xu Subject: [3/5] [NET] loopback: Added support for TSO Date: Tue, 27 Jun 2006 22:08:21 +1000 Message-ID: <20060627120821.GD748@gondor.apana.org.au> References: <20060627120240.GA748@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20060627120240.GA748@gondor.apana.org.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org Hi: [NET] loopback: Added support for TSO Just like SG, TSO support here is innate. So all we need to do is mark it as such. This patch also adds the ethtool control functions for SG. Signed-off-by: Herbert Xu Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- diff -r f328329eb465 -r c88ee5ecc39c linux-2.6-xen-sparse/drivers/xen/netback/loopback.c --- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c Tue Jun 27 21:29:42 2006 +1000 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c Tue Jun 27 21:30:08 2006 +1000 @@ -125,6 +125,10 @@ static struct ethtool_ops network_ethtoo { .get_tx_csum = ethtool_op_get_tx_csum, .set_tx_csum = ethtool_op_set_tx_csum, + .get_sg = ethtool_op_get_sg, + .set_sg = ethtool_op_set_sg, + .get_tso = ethtool_op_get_tso, + .set_tso = ethtool_op_set_tso, }; /* @@ -152,6 +156,7 @@ static void loopback_construct(struct ne dev->features = (NETIF_F_HIGHDMA | NETIF_F_LLTX | + NETIF_F_TSO | NETIF_F_SG | NETIF_F_IP_CSUM);