net/enic: unregister interrupt handler when stopping
authorNelson Escobar <neescoba@cisco.com>
Mon, 19 Sep 2016 18:50:09 +0000 (11:50 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commit667b8a3bd497d738471d301f5b2f50065f4c8a02
tree85321b5cfda0e71e5802b72f0fd92f9ca3681fc4
parentc904ae25feb4de94683963a774f726cff5b08a0c
net/enic: unregister interrupt handler when stopping

enic_disable() wasn't calling rte_intr_disable() or
rte_intr_callback_unregister().  stopping/starting a port would
result in the same interrupt callback being registered multiple
times, which would then cause it to be called multiple times on
every interrupt.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c