Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
38 lines
1.0 KiB
Bash
Executable File
38 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Regression tests for IPv6 flowlabels
|
|
#
|
|
# run in separate namespaces to avoid mgmt db conflicts betweent tests
|
|
|
|
set -e
|
|
|
|
echo "TEST management"
|
|
./in_netns.sh ./ipv6_flowlabel_mgr
|
|
|
|
echo "TEST datapath"
|
|
./in_netns.sh \
|
|
sh -c 'sysctl -q -w net.ipv6.auto_flowlabels=0 && ./ipv6_flowlabel -l 1'
|
|
|
|
echo "TEST datapath (with auto-flowlabels)"
|
|
./in_netns.sh \
|
|
sh -c 'sysctl -q -w net.ipv6.auto_flowlabels=1 && ./ipv6_flowlabel -l 1'
|
|
|
|
echo "TEST datapath (with ping-sockets)"
|
|
./in_netns.sh \
|
|
sh -c 'sysctl -q -w net.ipv6.flowlabel_reflect=4 && \
|
|
sysctl -q -w net.ipv4.ping_group_range="0 2147483647" && \
|
|
./ipv6_flowlabel -l 1 -p'
|
|
|
|
echo "TEST datapath (with flowinfo-send)"
|
|
./in_netns.sh \
|
|
sh -c './ipv6_flowlabel -l 1 -s'
|
|
|
|
echo "TEST datapath (with ping-sockets flowinfo-send)"
|
|
./in_netns.sh \
|
|
sh -c 'sysctl -q -w net.ipv6.flowlabel_reflect=4 && \
|
|
sysctl -q -w net.ipv4.ping_group_range="0 2147483647" && \
|
|
./ipv6_flowlabel -l 1 -p -s'
|
|
|
|
echo OK. All tests passed
|