<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/net/forwarding/bridge_igmp.sh, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-04-23T12:02:20Z</updated>
<entry>
<title>selftests: net/bridge : add tests for per vlan snooping with stp state changes</title>
<updated>2025-04-23T12:02:20Z</updated>
<author>
<name>Yong Wang</name>
</author>
<published>2025-04-17T13:43:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aea45363e29dd16050e6ce333ce0d3696ac3b5a9'/>
<id>urn:sha1:aea45363e29dd16050e6ce333ce0d3696ac3b5a9</id>
<content type='text'>
Change ALL_TESTS definition to "test-per-line".

Add the test case of per vlan snooping with port stp state change to
forwarding and also vlan equivalent case in both bridge_igmp.sh and
bridge_mld.sh.

Signed-off-by: Yong Wang &lt;yongwang@nvidia.com&gt;
Reviewed-by: Andy Roulin &lt;aroulin@nvidia.com&gt;
Reviewed-by: Ido Schimmel &lt;idosch@nvidia.com&gt;
Signed-off-by: Petr Machata &lt;petrm@nvidia.com&gt;
Acked-by: Nikolay Aleksandrov &lt;razor@blackwall.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: net: bridge: increase IGMP/MLD exclude timeout membership interval</title>
<updated>2024-05-15T10:42:17Z</updated>
<author>
<name>Nikolay Aleksandrov</name>
</author>
<published>2024-05-13T10:52:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=06080ea23095afe04a2cb7a8d05fab4311782623'/>
<id>urn:sha1:06080ea23095afe04a2cb7a8d05fab4311782623</id>
<content type='text'>
When running the bridge IGMP/MLD selftests on debug kernels we can get
spurious errors when setting up the IGMP/MLD exclude timeout tests
because the membership interval is just 3 seconds and the setup has 2
seconds of sleep plus various validations, the one second that is left
is not enough. Increase the membership interval from 3 to 5 seconds to
make room for the setup validation and 2 seconds of sleep.

Fixes: 34d7ecb3d4f7 ("selftests: net: bridge: update IGMP/MLD membership interval value")
Reported-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: Nikolay Aleksandrov &lt;razor@blackwall.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: bridge_igmp: Remove unnecessary address deletion</title>
<updated>2022-10-19T13:01:08Z</updated>
<author>
<name>Ido Schimmel</name>
</author>
<published>2022-10-18T06:39:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b526b2ea1454d03b294cd10aa35695d5232b1106'/>
<id>urn:sha1:b526b2ea1454d03b294cd10aa35695d5232b1106</id>
<content type='text'>
The test group address is added and removed in v2reportleave_test().
There is no need to delete it again during cleanup as it results in the
following error message:

 # bash -x ./bridge_igmp.sh
 [...]
 + cleanup
 + pre_cleanup
 [...]
 + ip address del dev swp4 239.10.10.10/32
 RTNETLINK answers: Cannot assign requested address
 + h2_destroy

Solve by removing the unnecessary address deletion.

Signed-off-by: Ido Schimmel &lt;idosch@nvidia.com&gt;
Acked-by: Nikolay Aleksandrov &lt;razor@blackwall.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: net: bridge: update IGMP/MLD membership interval value</title>
<updated>2021-10-29T12:58:21Z</updated>
<author>
<name>Nikolay Aleksandrov</name>
</author>
<published>2021-10-29T12:05:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=34d7ecb3d4f772eb00ce1f7195ae30886ddf4d2e'/>
<id>urn:sha1:34d7ecb3d4f772eb00ce1f7195ae30886ddf4d2e</id>
<content type='text'>
When I fixed IGMPv3/MLDv2 to use the bridge's multicast_membership_interval
value which is chosen by user-space instead of calculating it based on
multicast_query_interval and multicast_query_response_interval I forgot
to update the selftests relying on that behaviour. Now we have to
manually set the expected GMI value to perform the tests correctly and get
proper results (similar to IGMPv2 behaviour).

Fixes: fac3cb82a54a ("net: bridge: mcast: use multicast_membership_interval for IGMPv3")
Signed-off-by: Nikolay Aleksandrov &lt;nikolay@nvidia.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: net: bridge: factor out and rename sg state functions</title>
<updated>2020-11-05T00:55:47Z</updated>
<author>
<name>Nikolay Aleksandrov</name>
</author>
<published>2020-11-03T17:23:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95e6f430ebfee51ac174e234388e7c6e8216ff2c'/>
<id>urn:sha1:95e6f430ebfee51ac174e234388e7c6e8216ff2c</id>
<content type='text'>
Factor out S,G entry state checking functions for existence, forwarding,
blocking and timer to lib.sh so they can be later used by MLDv2 tests.
Add brmcast_ suffix to their name to make the relation to the bridge
explicit.

Signed-off-by: Nikolay Aleksandrov &lt;nikolay@nvidia.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: net: bridge: factor out mcast_packet_test</title>
<updated>2020-11-05T00:55:47Z</updated>
<author>
<name>Nikolay Aleksandrov</name>
</author>
<published>2020-11-03T17:23:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=537e48259eacbd92f3463900c20cc3acd9dd2072'/>
<id>urn:sha1:537e48259eacbd92f3463900c20cc3acd9dd2072</id>
<content type='text'>
Factor out mcast_packet_test into lib.sh so it can be later extended and
reused by MLDv2 tests.

Signed-off-by: Nikolay Aleksandrov &lt;nikolay@nvidia.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: net: bridge: add test for igmpv3 *,g auto-add</title>
<updated>2020-10-30T17:50:29Z</updated>
<author>
<name>Nikolay Aleksandrov</name>
</author>
<published>2020-10-27T18:59:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=414ea3754149847ec9491de9e9923750f5447331'/>
<id>urn:sha1:414ea3754149847ec9491de9e9923750f5447331</id>
<content type='text'>
When we have *,G ports in exclude mode and a new S,G,port is added
the kernel has to automatically create an S,G entry for each exclude
port to get proper forwarding.

Signed-off-by: Nikolay Aleksandrov &lt;nikolay@nvidia.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: net: bridge: add test for igmpv3 exclude timeout</title>
<updated>2020-10-30T17:50:29Z</updated>
<author>
<name>Nikolay Aleksandrov</name>
</author>
<published>2020-10-27T18:59:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=18f66c96ea585ca7bdd5c75eae3077566b0d73c0'/>
<id>urn:sha1:18f66c96ea585ca7bdd5c75eae3077566b0d73c0</id>
<content type='text'>
Test that when a group in exclude mode expires it changes mode to
include and the blocked entries are deleted.

Signed-off-by: Nikolay Aleksandrov &lt;nikolay@nvidia.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: net: bridge: add test for igmpv3 exc -&gt; block report</title>
<updated>2020-10-30T17:50:29Z</updated>
<author>
<name>Nikolay Aleksandrov</name>
</author>
<published>2020-10-27T18:59:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9eb58e07470bfb5a1c1d4ae08806b82d662171f7'/>
<id>urn:sha1:9eb58e07470bfb5a1c1d4ae08806b82d662171f7</id>
<content type='text'>
The test checks for the following case:
   state          report        result                  action
 EXCLUDE (X,Y)  BLOCK (A)     EXCLUDE (X+(A-Y),Y)      (A-X-Y)=Group Timer
                                                       Send Q(G,A-Y)

Signed-off-by: Nikolay Aleksandrov &lt;nikolay@nvidia.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: net: bridge: add test for igmpv3 inc -&gt; block report</title>
<updated>2020-10-30T17:50:29Z</updated>
<author>
<name>Nikolay Aleksandrov</name>
</author>
<published>2020-10-27T18:59:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=80899f1b1c05a07f907bc54d6dc5bdadb37ab4f1'/>
<id>urn:sha1:80899f1b1c05a07f907bc54d6dc5bdadb37ab4f1</id>
<content type='text'>
The test checks for the following case:
    state          report        result                  action
  INCLUDE (A)    BLOCK (B)     INCLUDE (A)              Send Q(G,A*B)

Signed-off-by: Nikolay Aleksandrov &lt;nikolay@nvidia.com&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
</feed>
