From c887960e90018bdbea8fcc47c4a04a96ac8abd9d Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Fri, 9 Dec 2016 20:24:01 +0100 Subject: [PATCH] gluon-radv-filterd: Tweak constants As I have seen instances of ebtables being killed with a timeout of 100ms, increasing it to 500ms. Also, to ease the straint on the CPU, increasing minimum time between TQ checks to 15 seconds. --- package/gluon-radv-filterd/src/gluon-radv-filterd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-radv-filterd/src/gluon-radv-filterd.c b/package/gluon-radv-filterd/src/gluon-radv-filterd.c index 08f1b463..57ea8959 100644 --- a/package/gluon-radv-filterd/src/gluon-radv-filterd.c +++ b/package/gluon-radv-filterd/src/gluon-radv-filterd.c @@ -57,10 +57,10 @@ // Recheck TQs at most this often, even if new RAs were received (they won't // become the preferred routers until the TQs have been rechecked) // Also, the first update will take at least this long -#define MIN_INTERVAL 5 +#define MIN_INTERVAL 15 // max execution time of a single ebtables call in nanoseconds -#define EBTABLES_TIMEOUT 1e8 // 100ms +#define EBTABLES_TIMEOUT 5e8 // 500ms // TQ value assigned to local routers #define LOCAL_TQ 512