net/bnxt: retry IRQ callback deregistration
authorLance Richardson <lance.richardson@broadcom.com>
Thu, 18 Jul 2019 03:36:04 +0000 (09:06 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:35 +0000 (14:31 +0200)
commit43f78b380f89a1b4693e64d5a84a2dff801b9c9d
treee40bc14f28319a86294d0baad5224f951e0d410c
parent838c9c7923917999793e3603b7a1b5bc8546c7a3
net/bnxt: retry IRQ callback deregistration

rte_intr_callback_unregister() can fail if the handler happens to
be active at the time of the call. Add logic to retry a reasonable
number of times to help ensure that the callback is unregistered
on uninit.

Fixes: 7bc8e9a227cc ("net/bnxt: support async link notification")
Cc: stable@dpdk.org
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_irq.c
drivers/net/bnxt/bnxt_irq.h