net/failsafe: fix duplicate event registration
authorMatan Azrad <matan@mellanox.com>
Tue, 22 May 2018 12:38:47 +0000 (12:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 22 May 2018 22:35:01 +0000 (00:35 +0200)
commit602c5623c8a884036aa81712f89542159a243a58
treeb4e9d6eedb31a588d1360aefcccacdc8a4174a04
parent0545c580fc377d33711786eaed665ee60e801bbd
net/failsafe: fix duplicate event registration

When the fail-safe device is reconfigured, it attempts to register
again for the sub-devices LSC and RMV events.

Prevent an event registration if it is already done.

Fixes: 598fb8aec6f6 ("net/failsafe: support device removal")
Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
drivers/net/failsafe/failsafe_ops.c