[Midnightbsd-cvs] src [8840] trunk/sys/dev/mxge/if_mxge_var.h: remove compat shim

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 26 00:06:47 EDT 2016


Revision: 8840
          http://svnweb.midnightbsd.org/src/?rev=8840
Author:   laffer1
Date:     2016-09-26 00:06:47 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
remove compat shim

Modified Paths:
--------------
    trunk/sys/dev/mxge/if_mxge_var.h

Modified: trunk/sys/dev/mxge/if_mxge_var.h
===================================================================
--- trunk/sys/dev/mxge/if_mxge_var.h	2016-09-26 04:05:53 UTC (rev 8839)
+++ trunk/sys/dev/mxge/if_mxge_var.h	2016-09-26 04:06:47 UTC (rev 8840)
@@ -50,19 +50,6 @@
 #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 Midnightbsd-cvs mailing list