File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ASM_SOURCES_AS = \
11
11
asm-x86_64/aes/aes_aesni.S \
12
12
asm-x86_64/modes/gcm_pclmulqdq.S \
13
13
asm-x86_64/modes/aesni-gcm-x86_64.S \
14
+ asm-x86_64/modes/aesni-gcm-avx2-vaes.S \
14
15
asm-x86_64/modes/ghash-x86_64.S \
15
16
asm-x86_64/sha2/sha256-x86_64.S \
16
17
asm-x86_64/sha2/sha512-x86_64.S \
@@ -112,6 +113,7 @@ CFLAGS.aes_amd64.S+= -DLOCORE
112
113
CFLAGS.aes_aesni.S+ = -DLOCORE
113
114
CFLAGS.gcm_pclmulqdq.S+ = -DLOCORE
114
115
CFLAGS.aesni-gcm-x86_64.S+ = -DLOCORE
116
+ CFLAGS.aesni-gcm-avx2-vaes.S+ = -DLOCORE
115
117
CFLAGS.ghash-x86_64.S+ = -DLOCORE
116
118
CFLAGS.sha256-x86_64.S+ = -DLOCORE
117
119
CFLAGS.sha512-x86_64.S+ = -DLOCORE
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ASM_SOURCES_AS = \
11
11
asm-x86_64/aes/aes_aesni.S \
12
12
asm-x86_64/modes/gcm_pclmulqdq.S \
13
13
asm-x86_64/modes/aesni-gcm-x86_64.S \
14
+ asm-x86_64/modes/aesni-gcm-avx2-vaes.S \
14
15
asm-x86_64/sha2/sha256-x86_64.S \
15
16
asm-x86_64/sha2/sha512-x86_64.S \
16
17
asm-x86_64/blake3/blake3_avx2.S \
@@ -109,6 +110,7 @@ CFLAGS.aes_amd64.S+= -DLOCORE
109
110
CFLAGS.aes_aesni.S+ = -DLOCORE
110
111
CFLAGS.gcm_pclmulqdq.S+ = -DLOCORE
111
112
CFLAGS.aesni-gcm-x86_64.S+ = -DLOCORE
113
+ CFLAGS.aesni-gcm-avx2-vaes.S+ = -DLOCORE
112
114
CFLAGS.ghash-x86_64.S+ = -DLOCORE
113
115
CFLAGS.sha256-x86_64.S+ = -DLOCORE
114
116
CFLAGS.sha512-x86_64.S+ = -DLOCORE
Original file line number Diff line number Diff line change @@ -419,6 +419,9 @@ contrib/openzfs/module/icp/asm-x86_64/blake3/blake3_avx512.S optional zfs com
419
419
contrib/openzfs/module/icp/asm-x86_64/blake3/blake3_sse2.S optional zfs compile-with "${ZFS_S}"
420
420
contrib/openzfs/module/icp/asm-x86_64/blake3/blake3_sse41.S optional zfs compile-with "${ZFS_S}"
421
421
422
+ # zfs AVX2 implementation of aes-gcm from BoringSSL
423
+ contrib/openzfs/module/icp/asm-x86_64/modes/aesni-gcm-avx2-vaes.S optional zfs compile-with "${ZFS_S}"
424
+
422
425
# zfs sha2 hash support
423
426
zfs-sha256-x86_64.o optional zfs \
424
427
dependency "$S/contrib/openzfs/module/icp/asm-x86_64/sha2/sha256-x86_64.S" \
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ KMOD= zfs
15
15
${SRCDIR} /icp/asm-ppc64/sha2 \
16
16
${SRCDIR} /icp/asm-ppc64/blake3 \
17
17
${SRCDIR} /icp/asm-x86_64/blake3 \
18
+ ${SRCDIR} /icp/asm-x86_64/modes \
18
19
${SRCDIR} /icp/asm-x86_64/sha2 \
19
20
${SRCDIR} /os/freebsd/spl \
20
21
${SRCDIR} /os/freebsd/zfs \
@@ -41,7 +42,7 @@ CFLAGS+= -D__KERNEL__ -DFREEBSD_NAMECACHE -DBUILDING_ZFS \
41
42
.if ${MACHINE_ARCH} == "amd64"
42
43
CFLAGS+ = -D__x86_64 -DHAVE_SSE2 -DHAVE_SSSE3 -DHAVE_SSE4_1 -DHAVE_SSE4_2 \
43
44
-DHAVE_AVX -DHAVE_AVX2 -DHAVE_AVX512F -DHAVE_AVX512VL -DHAVE_AVX512BW \
44
- -DHAVE_VAES HAVE_VPCLMULQDQ
45
+ -DHAVE_VAES -DHAVE_VPCLMULQDQ
45
46
.endif
46
47
47
48
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
@@ -83,6 +84,9 @@ SRCS+= blake3_avx2.S \
83
84
blake3_avx512.S \
84
85
blake3_sse2.S \
85
86
blake3_sse41.S
87
+
88
+ # icp/asm-x86_64/modes
89
+ SRCS+ = aesni-gcm-avx2-vaes.S
86
90
.endif
87
91
88
92
# icp/algs/sha2
You can’t perform that action at this time.
0 commit comments