]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/zcrypt: Rework domain processing within zcrypt device driver
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 18 Mar 2026 16:41:29 +0000 (17:41 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 24 Mar 2026 20:00:41 +0000 (21:00 +0100)
commite2c6d91eb8b1533753755f07803e47eceed263d0
tree70968c9a12d06a7f398c21c5fa2b37689a443004
parent23a4757d6d699e602b358808359149d0e8be6db9
s390/zcrypt: Rework domain processing within zcrypt device driver

Slight rework of the domain handling within the zcrypt dd:
Remove this curious construct to give a pointer to the
domain field within the CPRB struct to the zcrypt API and
later fill in the target domain via this pointer.
Now the domain is filled in with the send function when
the ready constructed AP message is about to be pushed
down into the software queue for AP queue processing.
So now the domain handling for CCA, EP11 and (internal) rng
CPRBs is the same. With this comes a slight reshuffle of the
code related to domain processing in the zcrypt API and the
message type 60 protocol implementation code.

Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_api.c
drivers/s390/crypto/zcrypt_msgtype6.c
drivers/s390/crypto/zcrypt_msgtype6.h