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 <>
Acked-by: Giovanni Cabiddu <>
Signed-off-by: Herbert Xu <>
1 file changed