Browse Source

[infiniband] Make IPoIB support configurable at build time

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>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
5bcaa1e4d4
3 changed files with 13 additions and 3 deletions
  1. 7
    0
      src/config/config_infiniband.c
  2. 6
    0
      src/config/general.h
  3. 0
    3
      src/net/infiniband.c

+ 7
- 0
src/config/config_infiniband.c View File

38
 REQUIRE_OBJECT ( ib_srp );
38
 REQUIRE_OBJECT ( ib_srp );
39
 #endif
39
 #endif
40
 
40
 
41
+/*
42
+ * Drag in Infiniband-specific virtual network devices
43
+ */
44
+#ifdef VNIC_IPOIB
45
+REQUIRE_OBJECT ( ipoib );
46
+#endif
47
+
41
 /*
48
 /*
42
  * Drag in Infiniband-specific commands
49
  * Drag in Infiniband-specific commands
43
  */
50
  */

+ 6
- 0
src/config/general.h View File

153
 #undef	NONPNP_HOOK_INT19	/* Hook INT19 on non-PnP BIOSes */
153
 #undef	NONPNP_HOOK_INT19	/* Hook INT19 on non-PnP BIOSes */
154
 #define	AUTOBOOT_ROM_FILTER	/* Autoboot only devices matching our ROM */
154
 #define	AUTOBOOT_ROM_FILTER	/* Autoboot only devices matching our ROM */
155
 
155
 
156
+/*
157
+ * Virtual network devices
158
+ *
159
+ */
160
+#define VNIC_IPOIB		/* Infiniband IPoIB virtual NICs */
161
+
156
 /*
162
 /*
157
  * Error message tables to include
163
  * Error message tables to include
158
  *
164
  *

+ 0
- 3
src/net/infiniband.c View File

1052
 
1052
 
1053
 /* Drag in Infiniband configuration */
1053
 /* Drag in Infiniband configuration */
1054
 REQUIRE_OBJECT ( config_infiniband );
1054
 REQUIRE_OBJECT ( config_infiniband );
1055
-
1056
-/* Drag in IPoIB */
1057
-REQUIRE_OBJECT ( ipoib );

Loading…
Cancel
Save