lldpad/lldpad-0.9.41-new-change-VDP-ACK-timer-value.patch
2011-04-21 09:10:21 +02:00

33 lines
1.1 KiB
Diff

From 6bcb3c33134e72f7b0b474a1c058b9e629eb1056 Mon Sep 17 00:00:00 2001
From: Jens Osterkamp <jens@linux.vnet.ibm.com>
Date: Tue, 8 Feb 2011 00:51:10 -0800
Subject: [PATCH 06/51] new: change VDP ACK timer value
This patch adapts the ACK timer value of the VDP state machine to be based
on ECP Ack timeout as this is described in the draft.
Signed-off-by: Jens Osterkamp <jens@linux.vnet.ibm.com>
Signed-off-by: Petr Sabata <psabata@redhat.com>
---
include/lldp_vdp.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/lldp_vdp.h b/include/lldp_vdp.h
index 2caf57a..3d1411d 100644
--- a/include/lldp_vdp.h
+++ b/include/lldp_vdp.h
@@ -65,8 +65,8 @@ static char *vsi_responses[] = {
#define VDP_MACVLAN_FORMAT_1 1
#define VDP_TIMER_GRANULARITY 10000 /* 10 ms in us */
-#define VDP_KEEPALIVE_TIMER_DEFAULT 1000
-#define VDP_ACK_TIMER_DEFAULT 150
+#define VDP_KEEPALIVE_TIMER_DEFAULT 1000 /* 10s in 10ms chunks */
+#define VDP_ACK_TIMER_DEFAULT 2*ECP_ACK_TIMER_DEFAULT*ECP_MAX_RETRIES/VDP_TIMER_GRANULARITY
#define VDP_KEEPALIVE_TIMER_STOPPED -1
#define VDP_ACK_TIMER_STOPPED -1
--
1.7.4.4