]> asedeno.scripts.mit.edu Git - linux.git/commit
s390/zcrypt: Enable request count reset for cards and queues.
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Tue, 15 Nov 2016 08:05:00 +0000 (09:05 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 23 Feb 2017 09:06:39 +0000 (10:06 +0100)
commitd0360d7b523f150c2ff0ab3c9361dfc3b4185cbf
treeb80655186deb374865263cb274c5d1a46791f877
parent54397bb0bbedbb9f7d77a62f6ddc6869354e3d9f
s390/zcrypt: Enable request count reset for cards and queues.

This patch introduces the possibility to reset the
request_count attribute for cards and queues to zero.
This can be used to set a clear state on the counters before
running an application and try out if and which hardware is
actually used. If the request_count counter of a card is
reset, for all associated queues the request_count is also
zeroed. If just a queue request_count is reset the card
counter is not updated however.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_card.c
drivers/s390/crypto/ap_queue.c