ia64/xen-unstable
changeset 10557:bb46d03f5f1d
[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 <herbert@gondor.apana.org.au>
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 <herbert@gondor.apana.org.au>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Wed Jun 28 12:03:57 2006 +0100 (2006-06-28) |
parents | 2eac0e15e0c2 |
children | 224597479812 |
files | linux-2.6-xen-sparse/drivers/xen/netback/loopback.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c Wed Jun 28 12:03:19 2006 +0100 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c Wed Jun 28 12:03:57 2006 +0100 1.3 @@ -125,6 +125,10 @@ static struct ethtool_ops network_ethtoo 1.4 { 1.5 .get_tx_csum = ethtool_op_get_tx_csum, 1.6 .set_tx_csum = ethtool_op_set_tx_csum, 1.7 + .get_sg = ethtool_op_get_sg, 1.8 + .set_sg = ethtool_op_set_sg, 1.9 + .get_tso = ethtool_op_get_tso, 1.10 + .set_tso = ethtool_op_set_tso, 1.11 }; 1.12 1.13 /* 1.14 @@ -152,6 +156,7 @@ static void loopback_construct(struct ne 1.15 1.16 dev->features = (NETIF_F_HIGHDMA | 1.17 NETIF_F_LLTX | 1.18 + NETIF_F_TSO | 1.19 NETIF_F_SG | 1.20 NETIF_F_IP_CSUM); 1.21