net/i40e: fix intr callback unregister by adding retry
authorYunjian Wang <wangyunjian@huawei.com>
Tue, 20 Mar 2018 07:01:24 +0000 (15:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
commit0264539dce2d40d8abaed474d4b1b526ca3ed2e4
treed51b6125b9a6c55e7170e326ff1ea674e36dcd4b
parent9e7fc8b8f3be3f7d5595143baa5af5cf7c140c24
net/i40e: fix intr callback unregister by adding retry

The nic's interrupt source has some active callbacks, when
the port hotplug. Add a retry to give more port's a chance
to uninit before returning an error.

Fixes: d42aaf30008b ("i40e: support port hotplug")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_ethdev.c