Blob Blame History Raw
From 6a3754050cd6713a0466da5e219983f594ca441c Mon Sep 17 00:00:00 2001
From: Jens Osterkamp <jens@linux.vnet.ibm.com>
Date: Sun, 6 Mar 2011 21:38:12 -0800
Subject: [PATCH 15/51] be sure to stop timers on VSI_EXIT

The VDP timers we are using have to be stopped for the profile on VSI_EXIT,
otherwise the timers may be kicked again on a profile that does no longer
exist.

Signed-off-by: Jens Osterkamp <jens@linux.vnet.ibm.com>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Petr Sabata <psabata@redhat.com>
---
 lldp_vdp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lldp_vdp.c b/lldp_vdp.c
index 025cc8f..52768fe 100644
--- a/lldp_vdp.c
+++ b/lldp_vdp.c
@@ -547,6 +547,8 @@ void vdp_vsi_sm_station(struct vsi_profile *profile)
 			break;
 		case VSI_EXIT:
 			/* TODO: send DEASSOC here ? */
+			vdp_stop_ackTimer(profile);
+			vdp_stop_keepaliveTimer(profile);
 			vdp_remove_profile(profile);
 			break;
 		default:
-- 
1.7.4.4