Subject: Re: VLAN GARP triggers a lot of timers if linux compiled with VLAN_8021Q_GVRP

From: Patrick McHardy <[email-masked]>
Date: Wed, 29 Sep 2010 11:22:51 +0200

Am 29.09.2010 02:35, schrieb didier:
> Hi,
> 
> In my understanding GARP is using a periodic timer but in net/802/garp.c:
> 
> garp_join_timer_arm()
> 
> delay = (u64)msecs_to_jiffies(garp_join_time)* net_random() >> 32;
> mod_timer(&app->join_timer, jiffies +delay)
> 
> Isn't this stuff triggering a *lot* of events?

Yeah, something around 5-10 timers per second IIRC. There was an RFC
patch a while ago to only schedule the timer on-demand, I'll see
whether I can find it again.