net: bridge: convert MLDv2 Query MRC into msecs_to_jiffies for max_delay
authorDaniel Borkmann <[email protected]>
Thu, 29 Aug 2013 21:55:05 +0000 (23:55 +0200)
committerDavid S. Miller <[email protected]>
Fri, 30 Aug 2013 21:56:47 +0000 (17:56 -0400)
commit2d98c29b6fb3de44d9eaa73c09f9cf7209346383
tree57d3bc8a2dae4c9a4e87ec14207505cb8db312f1
parent0d63c27d9e879a0b54eb405636d60ab12040ca46
net: bridge: convert MLDv2 Query MRC into msecs_to_jiffies for max_delay

While looking into MLDv1/v2 code, I noticed that bridging code does
not convert it's max delay into jiffies for MLDv2 messages as we do
in core IPv6' multicast code.

RFC3810, 5.1.3. Maximum Response Code says:

  The Maximum Response Code field specifies the maximum time allowed
  before sending a responding Report. The actual time allowed, called
  the Maximum Response Delay, is represented in units of milliseconds,
  and is derived from the Maximum Response Code as follows: [...]

As we update timers that work with jiffies, we need to convert it.

Signed-off-by: Daniel Borkmann <[email protected]>
Cc: Linus Lüssing <[email protected]>
Cc: Hannes Frederic Sowa <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/bridge/br_multicast.c