bnxt: disable napi before canceling DIM
authorJakub Kicinski <kuba@kernel.org>
Thu, 12 Aug 2021 21:42:40 +0000 (14:42 -0700)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:36:17 +0000 (08:36 -0400)
commit2bc75713434b548dbe84ba3e4c64c053046b31c5
treef825f6da7de39fd69680c763694c2c588cdfce3c
parenta9fb0f1559804a07b44fc82dae6a9cb3c3b4de08
bnxt: disable napi before canceling DIM

[ Upstream commit 01cca6b9330ac7460de44eeeb3a0607f8aae69ff ]

napi schedules DIM, napi has to be disabled first,
then DIM canceled.

Noticed while reading the code.

Fixes: 0bc0b97fca73 ("bnxt_en: cleanup DIM work on device shutdown")
Fixes: 6a8788f25625 ("bnxt_en: add support for software dynamic interrupt moderation")
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c