diff options
author | Michael Brown | 2016-03-09 09:41:53 +0100 |
---|---|---|
committer | Michael Brown | 2016-03-09 09:43:40 +0100 |
commit | 5bcaa1e4d4217911ef7c557a1da49b6248161e80 (patch) | |
tree | 750ae91b8fd826b04d159caa52f144e67fcd2a0d /src/config | |
parent | [ifmgmt] Include human-readable error message for configuration failure (diff) | |
download | ipxe-5bcaa1e4d4217911ef7c557a1da49b6248161e80.tar.gz ipxe-5bcaa1e4d4217911ef7c557a1da49b6248161e80.tar.xz ipxe-5bcaa1e4d4217911ef7c557a1da49b6248161e80.zip |
[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>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/config_infiniband.c | 7 | ||||
-rw-r--r-- | src/config/general.h | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/config/config_infiniband.c b/src/config/config_infiniband.c index 8c63fb00..9bac3b7c 100644 --- a/src/config/config_infiniband.c +++ b/src/config/config_infiniband.c @@ -39,6 +39,13 @@ REQUIRE_OBJECT ( ib_srp ); #endif /* + * Drag in Infiniband-specific virtual network devices + */ +#ifdef VNIC_IPOIB +REQUIRE_OBJECT ( ipoib ); +#endif + +/* * Drag in Infiniband-specific commands */ #ifdef IBMGMT_CMD diff --git a/src/config/general.h b/src/config/general.h index dba41212..9c433039 100644 --- a/src/config/general.h +++ b/src/config/general.h @@ -154,6 +154,12 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #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 * */ |