]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[infiniband] Make IPoIB support configurable at build time
authorMichael Brown <mcb30@ipxe.org>
Wed, 9 Mar 2016 08:41:53 +0000 (08:41 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 9 Mar 2016 08:43:40 +0000 (08:43 +0000)
Add a build configuration option VNIC_IPOIB to control whether or not
IPoIB support is included for Infiniband devices.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/config_infiniband.c
src/config/general.h
src/net/infiniband.c

index 8c63fb00e383ee32e695b397a33d143301c7fd31..9bac3b7c44ae5f98587d86d28d0eee7f9046a32e 100644 (file)
@@ -38,6 +38,13 @@ PROVIDE_REQUIRING_SYMBOL();
 REQUIRE_OBJECT ( ib_srp );
 #endif
 
+/*
+ * Drag in Infiniband-specific virtual network devices
+ */
+#ifdef VNIC_IPOIB
+REQUIRE_OBJECT ( ipoib );
+#endif
+
 /*
  * Drag in Infiniband-specific commands
  */
index dba412128f5e1b78bded99f0ba02e8d6c78d4187..9c4330399584c17de2e4793a902c3779c8746b59 100644 (file)
@@ -153,6 +153,12 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
 #undef NONPNP_HOOK_INT19       /* Hook INT19 on non-PnP BIOSes */
 #define        AUTOBOOT_ROM_FILTER     /* Autoboot only devices matching our ROM */
 
+/*
+ * Virtual network devices
+ *
+ */
+#define VNIC_IPOIB             /* Infiniband IPoIB virtual NICs */
+
 /*
  * Error message tables to include
  *
index df95579d10e849107693bcdb9503f1e80b68eb2c..15ff0529bb756af56f8088bfa485307695a8b3fc 100644 (file)
@@ -1052,6 +1052,3 @@ REQUIRING_SYMBOL ( register_ibdev );
 
 /* Drag in Infiniband configuration */
 REQUIRE_OBJECT ( config_infiniband );
-
-/* Drag in IPoIB */
-REQUIRE_OBJECT ( ipoib );