ia64/xen-unstable

changeset 10298:d8363da485ce

[NET] loopback: Added support for SG

Just like the standard loopback device, SG support here is innate.
So all we need to do is mark it as such and zero the change_mtu method
so that the MTU can be changed at will.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
author kaf24@firebug.cl.cam.ac.uk
date Fri Jun 02 12:19:33 2006 +0100 (2006-06-02)
parents 8425df2203c9
children 90a8ab269afe
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	Fri Jun 02 12:14:27 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/loopback.c	Fri Jun 02 12:19:33 2006 +0100
     1.3 @@ -146,11 +146,13 @@ static void loopback_construct(struct ne
     1.4  	dev->hard_start_xmit = loopback_start_xmit;
     1.5  	dev->get_stats       = loopback_get_stats;
     1.6  	dev->set_multicast_list = loopback_set_multicast_list;
     1.7 +	dev->change_mtu	     = NULL; /* allow arbitrary mtu */
     1.8  
     1.9  	dev->tx_queue_len    = 0;
    1.10  
    1.11  	dev->features        = (NETIF_F_HIGHDMA |
    1.12  				NETIF_F_LLTX |
    1.13 +				NETIF_F_SG |
    1.14  				NETIF_F_IP_CSUM);
    1.15  
    1.16  	SET_ETHTOOL_OPS(dev, &network_ethtool_ops);