]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/zcrypt: Slight rework on the agent_id field
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 18 Mar 2026 16:41:33 +0000 (17:41 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 24 Mar 2026 20:00:42 +0000 (21:00 +0100)
commit2a0a1db5081df02d6753deb1826fd3932a1ab168
treeebb5140c288f42c5aca1350877a14fdf79c2a91b
parent0e72b785b60e2a33f7bfe1c492f0717e7835b9a4
s390/zcrypt: Slight rework on the agent_id field

The agent_id field is a two byte ascii field addressing
the target agent on the crypto card. Some code however
addresses this field as unsigned short. Rework these
places to treat this field always as a two byte array.
Unfortunately this field also shows up as __u16 in
struct ica_xcRB as part of the zcrypt ioctl interface.
Leave this untouched as it would break the API.

There are two other places (func_id) where a byte array
gets assigned with hex values but in fact these are ascii
value. So replace these assignments with real ascii values
for more readability.

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_ccamisc.c
drivers/s390/crypto/zcrypt_msgtype6.c