ia64/xen-unstable

changeset 11746:55e53c556f9f

[NET] front: Invert the test for a kernel with GSO support.

This simplifies a subsequent patch.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
author Ian Campbell <ian.campbell@xensource.com>
date Thu Oct 05 10:09:20 2006 +0100 (2006-10-05)
parents 0dc4ae151be2
children ad926cc0a50e
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	Thu Oct 05 09:30:07 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c	Thu Oct 05 10:09:20 2006 +0100
     1.3 @@ -85,10 +85,7 @@ static const int MODPARM_rx_flip = 0;
     1.4  #define RX_COPY_THRESHOLD 256
     1.5  
     1.6  /* If we don't have GSO, fake things up so that we never try to use it. */
     1.7 -#ifndef NETIF_F_GSO
     1.8 -#define netif_needs_gso(dev, skb)	0
     1.9 -#define dev_disable_gso_features(dev)	((void)0)
    1.10 -#else
    1.11 +#ifdef NETIF_F_GSO
    1.12  #define HAVE_GSO			1
    1.13  static inline void dev_disable_gso_features(struct net_device *dev)
    1.14  {
    1.15 @@ -96,6 +93,9 @@ static inline void dev_disable_gso_featu
    1.16  	dev->features &= (1 << NETIF_F_GSO_SHIFT) - 1;
    1.17  	dev->features |= NETIF_F_GSO_ROBUST;
    1.18  }
    1.19 +#else
    1.20 +#define netif_needs_gso(dev, skb)	0
    1.21 +#define dev_disable_gso_features(dev)	((void)0)
    1.22  #endif
    1.23  
    1.24  #define GRANT_INVALID_REF	0