1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

if_wg: fix modules load on !x86

Only x86 provides optimized implementations via the blake2 module. The
software "reference" implementation is already included in the crypto(4)
module, we can drop the extra MODULE_DEPEND for other platforms.

Without this change, if_wg.ko could not be loaded due to the missing
dependency.

PR:		252156
Reported by:	gbe
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mitchell Horne 2021-01-12 17:38:21 -04:00
parent d7493759fb
commit d89e1db5a3

View File

@ -843,5 +843,8 @@ static moduledata_t wg_moduledata = {
DECLARE_MODULE(wg, wg_moduledata, SI_SUB_PSEUDO, SI_ORDER_ANY);
MODULE_VERSION(wg, 1);
MODULE_DEPEND(wg, iflib, 1, 1, 1);
#if defined(__amd64__) || defined(__i386__)
/* Optimized blake2 implementations are only available on x86. */
MODULE_DEPEND(wg, blake2, 1, 1, 1);
#endif
MODULE_DEPEND(wg, crypto, 1, 1, 1);