From: kaf24@firebug.cl.cam.ac.uk Date: Wed, 28 Jun 2006 11:03:57 +0000 (+0100) Subject: [NET] loopback: Added support for TSO X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15913^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2a3c1a46fdaa9264e5512765ed281e6782cdcba1;p=xen.git [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 --- diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c index e9337b0005..64c6c352d4 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c @@ -125,6 +125,10 @@ static struct ethtool_ops network_ethtool_ops = { .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 net_device *dev, struct net_device *lo) dev->features = (NETIF_F_HIGHDMA | NETIF_F_LLTX | + NETIF_F_TSO | NETIF_F_SG | NETIF_F_IP_CSUM);