scsi: qedf: Change context reset messages to ratelimited
authorSaurav Kashyap <skashyap@marvell.com>
Mon, 17 Jan 2022 13:53:11 +0000 (05:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:56:13 +0000 (12:56 +0100)
commit1c22df15cf402850fc9ba435f73f57f65c117d35
tree51dc33124471578f1ff9dc0a3925fd9d6266236a
parent6be8eaad75ca73131e2a697f0270dc8ee73814a8
scsi: qedf: Change context reset messages to ratelimited

[ Upstream commit 64fd4af6274eb0f49d29772c228fffcf6bde1635 ]

If FCoE is not configured, libfc/libfcoe keeps on retrying FLOGI and after
3 retries driver does a context reset and tries fipvlan again.  This leads
to context reset message flooding the logs. Hence ratelimit the message to
prevent flooding the logs.

Link: https://lore.kernel.org/r/20220117135311.6256-4-njavali@marvell.com
Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qedf/qedf_main.c