crypto: qat - ratelimit invalid ioctl message and print the invalid cmd
authorColin Ian King <colin.king@canonical.com>
Tue, 22 Jun 2021 15:16:08 +0000 (16:16 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Jun 2021 03:28:08 +0000 (11:28 +0800)
commitcd5c91fe62519af6af238bbead32f2943a85c7de
treebab2ee9760298816e2ead23a77c67d928423a87c
parent9f38b678ffc4e2ccf167a1131c0403dc4f5e1bb7
crypto: qat - ratelimit invalid ioctl message and print the invalid cmd

Currently incorrect QAT ioctls can spam the kernel log with error messages
of the form "QAT: Invalid ioctl" if a userspace program uses the wrong
ioctl command. Quench the messages by ratelimiting them and also print
the invalid command being used as that is useful to know.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_ctl_drv.c