]> git.baikalelectronics.ru Git - kernel.git/commit
IPv4: unresolved multicast route cleanup
authorAndreas Meissner <andreas.meissner@sphairon.com>
Mon, 10 May 2010 11:47:49 +0000 (04:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 May 2010 11:47:49 +0000 (04:47 -0700)
commitb459050405f6e2c08b0e66bd8ecdd9a30305d592
treefcce588f4d79a384aa961e6c1f354d4eab8231a1
parent0d14cf12bad8954b928f2e8aa439edea8eba20eb
IPv4: unresolved multicast route cleanup

Fixes the expiration timer for unresolved multicast route entries.
In case new multicast routing requests come in faster than the
expiration timeout occurs (e.g. zap through multicast TV streams), the
timer is prevented from being called at time for already existing entries.

As the single timer is resetted to default whenever a new entry is made,
the timeout for existing unresolved entires are missed and/or not
updated. As a consequence new requests are denied when the limit of
unresolved entries has been reached because old entries live longer than
they are supposed to.

The solution is to reset the timer only for the first unresolved entry
in the multicast routing cache. All other timers are already set and
updated correctly within the timer function itself by now.

Signed-off by: Andreas Meissner <andreas.meissner@sphairon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c