]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/bnxt_re: Reduce the delay in polling for hwrm command completion
authorSelvin Xavier <selvin.xavier@broadcom.com>
Wed, 15 Sep 2021 12:32:35 +0000 (05:32 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 20 Sep 2021 16:37:01 +0000 (13:37 -0300)
commita9a3def1920ac41aa0a893fc5c7fd490e3a95fda
tree8d8b007326cdc1014030f4758f34ee4de62ecbb3
parent38f6c158bf6a2bbabb92db214cbf6b19be786f79
RDMA/bnxt_re: Reduce the delay in polling for hwrm command completion

Driver has 1ms delay between the polling for atomic command completion.
Polling immediately after issuing command usually doesn't report any
completions. So all commands in the blocking path needs two iterations. So
effectively 1ms spend on each command. HW requires much lesser time for
each command. So reduce the delay to 1us and increase the iteration count
to wait for the same time.

Link: https://lore.kernel.org/r/1631709163-2287-5-git-send-email-selvin.xavier@broadcom.com
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c
drivers/infiniband/hw/bnxt_re/qplib_rcfw.h