Procházet zdrojové kódy

[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 před 10 roky
rodič
revize
5bcaa1e4d4
3 změnil soubory, kde provedl 13 přidání a 3 odebrání
  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 Zobrazit soubor

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 Zobrazit soubor

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 Zobrazit soubor

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 );

Načítá se…
Zrušit
Uložit