<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/net/hsr, branch linux-6.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-06-05T09:52:04Z</updated>
<entry>
<title>selftests: hsr: add missing config for CONFIG_BRIDGE</title>
<updated>2024-06-05T09:52:04Z</updated>
<author>
<name>Hangbin Liu</name>
</author>
<published>2024-06-03T09:30:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=712115a24b1a5318c10fc757d48d8f33815a6bfa'/>
<id>urn:sha1:712115a24b1a5318c10fc757d48d8f33815a6bfa</id>
<content type='text'>
hsr_redbox.sh test need to create bridge for testing. Add the missing
config CONFIG_BRIDGE in config file.

Fixes: eafbf0574e05 ("test: hsr: Extend the hsr_redbox.sh to have more SAN devices connected")
Signed-off-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Tested-by: Simon Horman &lt;horms@kernel.org&gt;
Reviewed-by: Simon Horman &lt;horms@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: hsr: Fix "File exists" errors for hsr_ping</title>
<updated>2024-05-27T09:44:42Z</updated>
<author>
<name>Geliang Tang</name>
</author>
<published>2024-05-22T10:45:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=21a22ed618d072a47597e63ee591973c18524880'/>
<id>urn:sha1:21a22ed618d072a47597e63ee591973c18524880</id>
<content type='text'>
The hsr_ping test reports the following errors:

 INFO: preparing interfaces for HSRv0.
 INFO: Initial validation ping.
 INFO: Longer ping test.
 INFO: Cutting one link.
 INFO: Delay the link and drop a few packages.
 INFO: All good.
 INFO: preparing interfaces for HSRv1.
 RTNETLINK answers: File exists
 RTNETLINK answers: File exists
 RTNETLINK answers: File exists
 RTNETLINK answers: File exists
 RTNETLINK answers: File exists
 RTNETLINK answers: File exists
 Error: ipv4: Address already assigned.
 Error: ipv6: address already assigned.
 Error: ipv4: Address already assigned.
 Error: ipv6: address already assigned.
 Error: ipv4: Address already assigned.
 Error: ipv6: address already assigned.
 INFO: Initial validation ping.

That is because the cleanup code for the 2nd round test before
"setup_hsr_interfaces 1" is removed incorrectly in commit 680fda4f6714
("test: hsr: Remove script code already implemented in lib.sh").

This patch fixes it by re-setup the namespaces using

	setup_ns ns1 ns2 ns3

command before "setup_hsr_interfaces 1". It deletes previous namespaces
and create new ones.

Fixes: 680fda4f6714 ("test: hsr: Remove script code already implemented in lib.sh")
Reviewed-by: Hangbin Liu &lt;liuhangbin@gmail.com&gt;
Signed-off-by: Geliang Tang &lt;tanggeliang@kylinos.cn&gt;
Link: https://lore.kernel.org/r/6485d3005f467758d49f0f313c8c009759ba6b05.1716374462.git.tanggeliang@kylinos.cn
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>test: hsr: Extend the hsr_redbox.sh to have more SAN devices connected</title>
<updated>2024-05-13T23:02:22Z</updated>
<author>
<name>Lukasz Majewski</name>
</author>
<published>2024-05-10T14:37:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eafbf0574e05160c9a256666261d04a1bc59fa71'/>
<id>urn:sha1:eafbf0574e05160c9a256666261d04a1bc59fa71</id>
<content type='text'>
After this change the single SAN device (ns3eth1) is now replaced with
two SAN devices - respectively ns4eth1 and ns5eth1.

It is possible to extend this script to have more SAN devices connected
by adding them to ns3br1 bridge.

Signed-off-by: Lukasz Majewski &lt;lukma@denx.de&gt;
Link: https://lore.kernel.org/r/20240510143710.3916631-1-lukma@denx.de
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>test: hsr: Call cleanup_all_ns when hsr_redbox.sh script exits</title>
<updated>2024-05-08T11:23:53Z</updated>
<author>
<name>Lukasz Majewski</name>
</author>
<published>2024-05-07T09:11:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=252aa6d53931381bd774acd06866ed0fb1976ead'/>
<id>urn:sha1:252aa6d53931381bd774acd06866ed0fb1976ead</id>
<content type='text'>
Without this change the created netns instances are not cleared after
this script execution. To fix this problem the cleanup_all_ns function
from ../lib.sh is called.

Signed-off-by: Lukasz Majewski &lt;lukma@denx.de&gt;
Reviewed-by: Simon Horman &lt;horms@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>test: hsr: Add test for HSR RedBOX (HSR-SAN) mode of operation</title>
<updated>2024-04-26T10:04:43Z</updated>
<author>
<name>Lukasz Majewski</name>
</author>
<published>2024-04-23T12:49:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=542e645c4a4d7dc9a6ef6bbf0e4249fc113728d1'/>
<id>urn:sha1:542e645c4a4d7dc9a6ef6bbf0e4249fc113728d1</id>
<content type='text'>
This patch adds hsr_redbox.sh script to test if HSR-SAN mode of operation
works correctly.

Signed-off-by: Lukasz Majewski &lt;lukma@denx.de&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>test: hsr: Extract version agnostic information from ping command output</title>
<updated>2024-04-26T10:04:43Z</updated>
<author>
<name>Lukasz Majewski</name>
</author>
<published>2024-04-23T12:49:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40b90bf60ce10310baa7c4c2537cb3ee6ab622b9'/>
<id>urn:sha1:40b90bf60ce10310baa7c4c2537cb3ee6ab622b9</id>
<content type='text'>
Current code checks if ping command output match hardcoded pattern:
"10 packets transmitted, 10 received, 0% packet loss,".

Such approach will work only from one ping program version (for which
this test has been originally written).
This patch address problem when ping with different summary output
like "10 packets transmitted, 10 packets received, 0% packet" is
used to run this test - for example one from busybox (as the test
system runs in QEMU with rootfs created with buildroot).

The fix is to modify output of ping command to be agnostic to ping
version used on the platform.

Signed-off-by: Lukasz Majewski &lt;lukma@denx.de&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>test: hsr: Move common code to hsr_common.sh file</title>
<updated>2024-04-26T10:04:43Z</updated>
<author>
<name>Lukasz Majewski</name>
</author>
<published>2024-04-23T12:49:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=154a82cb64be2f6f88f8eabd0d0353ea66adae43'/>
<id>urn:sha1:154a82cb64be2f6f88f8eabd0d0353ea66adae43</id>
<content type='text'>
Some of the code already present in the hsr_ping.sh test program can be
moved to a separate script file, so it can be reused by other HSR
functionality (like HSR-SAN) tests.

Signed-off-by: Lukasz Majewski &lt;lukma@denx.de&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>test: hsr: Remove script code already implemented in lib.sh</title>
<updated>2024-04-26T10:04:43Z</updated>
<author>
<name>Lukasz Majewski</name>
</author>
<published>2024-04-23T12:49:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=680fda4f671452d99401f294f20b60b3fdf24191'/>
<id>urn:sha1:680fda4f671452d99401f294f20b60b3fdf24191</id>
<content type='text'>
Some parts (like netns creation and cleanup) of hsr_ping.sh script are
already implemented in ../lib.sh common script, so can be replaced by it.

Signed-off-by: Lukasz Majewski &lt;lukma@denx.de&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>selftests: hsr: Extend the testsuite to also cover HSRv1.</title>
<updated>2023-09-18T07:26:19Z</updated>
<author>
<name>Sebastian Andrzej Siewior</name>
</author>
<published>2023-09-15T18:10:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b0e9c3b5fdafbe60e7a82be69439f95e06a4de39'/>
<id>urn:sha1:b0e9c3b5fdafbe60e7a82be69439f95e06a4de39</id>
<content type='text'>
The testsuite already has simply tests for HSRv0. The testuite would
have been able to notice the v1 breakage if it was there at the time.

Extend the testsuite to also cover HSRv1.

Signed-off-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>selftests: hsr: Reorder the testsuite.</title>
<updated>2023-09-18T07:26:19Z</updated>
<author>
<name>Sebastian Andrzej Siewior</name>
</author>
<published>2023-09-15T18:10:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d53f23fe164c24335d001cf725599a95e6fdf92d'/>
<id>urn:sha1:d53f23fe164c24335d001cf725599a95e6fdf92d</id>
<content type='text'>
Move the code and group into functions so it will be easier to extend
the test to HSRv1 so that both versions are covered.

Move the ping/test part into do_complete_ping_test() and the interface
setup into setup_hsr_interfaces().

Signed-off-by: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
