ia64/xen-unstable

changeset 12367:2df2acc05721

PV-on-HVM: TSO support prior to 2.6.9 appears to be unreliable,
especially when firewalling is enabled.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Fri Nov 10 12:34:28 2006 +0000 (2006-11-10)
parents 60a4af3d243f
children 7df5d39a0d9a
files linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Fri Nov 10 12:34:26 2006 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Fri Nov 10 12:34:28 2006 +0000
     1.3 @@ -1623,8 +1623,16 @@ static void xennet_set_features(struct n
     1.4  	if (!(dev->features & NETIF_F_IP_CSUM))
     1.5  		return;
     1.6  
     1.7 -	if (!xennet_set_sg(dev, 1))
     1.8 -		xennet_set_tso(dev, 1);
     1.9 +	if (xennet_set_sg(dev, 1))
    1.10 +		return;
    1.11 +
    1.12 +	/* Before 2.6.9 TSO seems to be unreliable so do not enable it
    1.13 +	 * on older kernels.
    1.14 +	 */
    1.15 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,9)
    1.16 +	xennet_set_tso(dev, 1);
    1.17 +#endif
    1.18 +
    1.19  }
    1.20  
    1.21  static int network_connect(struct net_device *dev)