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:
parent
d7493759fb
commit
d89e1db5a3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user