kern/150247: [patch] [ixgbe] Version in -current won't build on 7.x systems

Andrew Boyer aboyer at averesystems.com
Fri Jan 7 19:00:23 UTC 2011


The following reply was made to PR kern/150247; it has been noted by GNATS.

From: Andrew Boyer <aboyer at averesystems.com>
To: bug-followup at FreeBSD.org,
 Andrew Boyer <aboyer at averesystems.com>
Cc:  
Subject: Re: kern/150247: [patch] [ixgbe] Version in -current won't build on 7.x systems
Date: Fri, 7 Jan 2011 13:36:15 -0500

 The problem has spread to the new file ixv.h:
 
 --- ixv.h	2010-11-26 17:46:32.000000000 -0500
 +++ ixv.h	2011-01-07 13:08:45.000000000 -0500
 @@ -175,7 +175,11 @@
  #define VFTA_SIZE			128
 =20
  /* Offload bits in mbuf flag */
 +#if __FreeBSD_version >=3D 800000
  #define CSUM_OFFLOAD		(CSUM_IP|CSUM_TCP|CSUM_UDP|CSUM_SCTP)
 +#else
 +#define CSUM_OFFLOAD		(CSUM_IP|CSUM_TCP|CSUM_UDP)
 +#endif
 =20
  /*
   =
 **************************************************************************=
 ***
 @@ -400,7 +404,7 @@
  #define IXV_TX_LOCK_ASSERT(_sc)         mtx_assert(&(_sc)->tx_mtx, =
 MA_OWNED)
 =20
  /* Workaround to make 8.0 buildable */
 -#if __FreeBSD_version < 800504
 +#if __FreeBSD_version >=3D 800000 && __FreeBSD_version < 800504
  static __inline int
  drbr_needs_enqueue(struct ifnet *ifp, struct buf_ring *br)
  {
 
 
 
 
 
 


More information about the freebsd-net mailing list