svn commit: r247365 - stable/9/sys/dev/mxge

Andrew Gallatin gallatin at FreeBSD.org
Wed Feb 27 00:14:13 UTC 2013


Author: gallatin
Date: Wed Feb 27 00:14:12 2013
New Revision: 247365
URL: http://svnweb.freebsd.org/changeset/base/247365

Log:
  Fix the build.
  
  Back out mis-guided compat shim that should not have been MFC'ed

Modified:
  stable/9/sys/dev/mxge/if_mxge_var.h

Modified: stable/9/sys/dev/mxge/if_mxge_var.h
==============================================================================
--- stable/9/sys/dev/mxge/if_mxge_var.h	Tue Feb 26 23:54:17 2013	(r247364)
+++ stable/9/sys/dev/mxge/if_mxge_var.h	Wed Feb 27 00:14:12 2013	(r247365)
@@ -50,19 +50,6 @@ $FreeBSD$
 #define IFNET_BUF_RING 1
 #endif
 
-#if (__FreeBSD_version < 1000020)
-#undef IF_Kbps
-#undef IF_Mbps
-#undef IF_Gbps
-#define	IF_Kbps(x)	((uintmax_t)(x) * 1000)	/* kilobits/sec. */
-#define	IF_Mbps(x)	(IF_Kbps((x) * 1000))	/* megabits/sec. */
-#define	IF_Gbps(x)	(IF_Mbps((x) * 1000))	/* gigabits/sec. */
-static __inline void
-if_initbaudrate(struct ifnet *ifp, uintmax_t baud)
-{
-	ifp->if_baudrate = baud;
-}
-#endif
 #ifndef VLAN_CAPABILITIES
 #define VLAN_CAPABILITIES(ifp)
 #define mxge_vlans_active(sc) (sc)->ifp->if_nvlans


More information about the svn-src-all mailing list