2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00

tools: selftests: rtnetlink: add testcases for vxlan flag sets

This patch extends rtnetlink.sh to cover some vxlan flag
netlink attribute sets.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Roopa Prabhu 2019-02-25 22:03:02 -08:00 committed by David S. Miller
parent 70fb082880
commit da640bc051

View File

@ -408,6 +408,58 @@ kci_test_encap_vxlan()
ip netns exec "$testns" ip link add link "$vxlan" name "$vlan" type vlan id 1
check_err $?
# changelink testcases
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan vni 43 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan group ffe5::5 dev "$devdummy" 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan ttl inherit 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan ttl 64
check_err $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan nolearning
check_err $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan proxy 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan norsc 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan l2miss 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan l3miss 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan external 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan udpcsum 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan udp6zerocsumtx 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan udp6zerocsumrx 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan remcsumtx 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan remcsumrx 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan gbp 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link set dev "$vxlan" type vxlan gpe 2>/dev/null
check_fail $?
ip netns exec "$testns" ip link del "$vxlan"
check_err $?