Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: fb33c6510d5595144d585aa194d377cf74d31911 authored by Linus Torvalds on 15 March 2020, 22:01:23 UTC
Linux 5.6-rc6
Tip revision: fb33c65
ipv6_flowlabel.sh
#!/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 OK. All tests passed
back to top