]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: Export information about Endpoint-Security Capability
authorSebastian Ott <sebott@linux.ibm.com>
Thu, 8 Oct 2020 13:13:27 +0000 (15:13 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:37 +0000 (08:14 -0700)
commit28d53244daf563ee12040bc87fbd9564b0c63a06
treee3cdb28391d8e167a0422707074cbf1d3550dacd
parentea939e7a8d38bdd5273834e739e7a10934faa547
s390/cio: Export information about Endpoint-Security Capability

Add a new sysfs attribute 'esc' per chpid. This new attribute exports
the Endpoint-Security-Capability byte of channel-path description block,
which could be 0-None, 1-Authentication, 2 and 3-Encryption.

For example:
$ cat /sys/devices/css0/chp0.34/esc
0

[vneethv@linux.ibm.com: cleaned-up & modified description]

Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/cio/chp.c
drivers/s390/cio/chsc.h