]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'multicast-init-as-INCLUDE-when-join-SSM-INCLUDE-group'
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 18:20:07 +0000 (11:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 18:20:07 +0000 (11:20 -0700)
commit6ea19122eb6c74e14d22d7c0bc62a8ba24fdb3c2
tree03f7f2ef2a2c6057038292eadf567eda876f3991
parent195ec90526fd612cc7be02ee223d3008e3b24e55
parent52d92957ff0be0b0b24ec79fbeb4edfeb4ca7dbd
Merge branch 'multicast-init-as-INCLUDE-when-join-SSM-INCLUDE-group'

Hangbin Liu says:

====================
multicast: init as INCLUDE when join SSM INCLUDE group

Based on RFC3376 5.1 and RFC3810 6.1, we should init as INCLUDE when join SSM
INCLUDE group. In my first version I only clear the group change record. But
this is not enough as when a new group join, it will init as EXCLUDE and
trigger an filter mode change in ip/ip6_mc_add_src(), which will clear all
source addresses' sf_crcount. This will prevent early joined address sending
state change records if multi source addresses joined at the same time.

In this v2 patchset, I fixed it by directly initializing the mode to INCLUDE
for SSM JOIN_SOURCE_GROUP. I also split the original patch into two separated
patches for IPv4 and IPv6.

Test: test by myself and customer.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>