Selaa lähdekoodia

[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 vuotta sitten
vanhempi
commit
5bcaa1e4d4
3 muutettua tiedostoa jossa 13 lisäystä ja 3 poistoa
  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 Näytä tiedosto

@@ -38,6 +38,13 @@ PROVIDE_REQUIRING_SYMBOL();
38 38
 REQUIRE_OBJECT ( ib_srp );
39 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 49
  * Drag in Infiniband-specific commands
43 50
  */

+ 6
- 0
src/config/general.h Näytä tiedosto

@@ -153,6 +153,12 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
153 153
 #undef	NONPNP_HOOK_INT19	/* Hook INT19 on non-PnP BIOSes */
154 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 163
  * Error message tables to include
158 164
  *

+ 0
- 3
src/net/infiniband.c Näytä tiedosto

@@ -1052,6 +1052,3 @@ REQUIRING_SYMBOL ( register_ibdev );
1052 1052
 
1053 1053
 /* Drag in Infiniband configuration */
1054 1054
 REQUIRE_OBJECT ( config_infiniband );
1055
-
1056
-/* Drag in IPoIB */
1057
-REQUIRE_OBJECT ( ipoib );

Loading…
Peruuta
Tallenna