]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt: disable napi before canceling DIM
authorJakub Kicinski <kuba@kernel.org>
Thu, 12 Aug 2021 21:42:40 +0000 (14:42 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Aug 2021 17:26:17 +0000 (10:26 -0700)
commit101b8731011847525ccb0f0d4682e2daa0292855
treec6686b3c8decafe539b068e7a5669573ce5c9ecf
parent11e708c2ad06e410c2c7602f73361ad908550ed7
bnxt: disable napi before canceling DIM

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

Noticed while reading the code.

Fixes: 26efb827a8af ("bnxt_en: cleanup DIM work on device shutdown")
Fixes: 2d6e8c69a5b3 ("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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c