2 # SPDX-License-Identifier: GPL-2.0
4 # Test operations that we expect to report extended ack.
6 lib_dir
=$
(dirname $0)/..
/..
/..
/net
/forwarding
14 source $lib_dir/lib.sh
21 ip link
set dev
$swp1 up
22 ip link
set dev
$swp2 up
29 ip link
set dev
$swp2 down
30 ip link
set dev
$swp1 down
37 ip link add name br1 up
type bridge vlan_filtering
0 mcast_snooping
0
38 ip link add name vx1 up
type vxlan id
1000 \
39 local 192.0.2.17 remote
192.0.2.18 \
40 dstport
4789 nolearning noudpcsum tos inherit ttl
100
42 ip link
set dev vx1 master br1
45 ip link
set dev
$swp1 master br1
48 ip link add name br2 up
type bridge vlan_filtering
0 mcast_snooping
0
49 ip link add name vx2 up
type vxlan id
2000 \
50 local 192.0.2.17 remote
192.0.2.18 \
51 dstport
4789 nolearning noudpcsum tos inherit ttl
100
53 ip link
set dev vx2 master br2
56 ip link
set dev
$swp2 master br2
59 # Unsupported configuration: mlxsw demands that all offloaded VXLAN
60 # devices have the same TTL.
61 ip link
set dev vx2 down
62 ip link
set dev vx2
type vxlan ttl
200
64 ip link
set dev vx2 up
&>/dev
/null
67 ip link
set dev vx2 up
2>&1 >/dev
/null |
grep -q mlxsw_spectrum
70 log_test
"extack - NETDEV_PRE_UP"
83 ip link add name br1 up
type bridge vlan_filtering
1 mcast_snooping
0
85 # Unsupported configuration: mlxsw demands VXLAN with "noudpcsum".
86 ip link add name vx1 up
type vxlan id
1000 \
87 local 192.0.2.17 remote
192.0.2.18 \
88 dstport
4789 tos inherit ttl
100
90 ip link
set dev vx1 master br1
93 bridge vlan add dev vx1 vid
1
96 ip link
set dev
$swp1 master br1
99 bridge vlan add dev vx1 vid
1 pvid untagged
2>&1 >/dev
/null \
100 |
grep -q mlxsw_spectrum
103 log_test
"extack - map VLAN at VXLAN device"
113 ip link add name br1 up
type bridge vlan_filtering
1 mcast_snooping
0
115 # Unsupported configuration: mlxsw demands VXLAN with "noudpcsum".
116 ip link add name vx1 up
type vxlan id
1000 \
117 local 192.0.2.17 remote
192.0.2.18 \
118 dstport
4789 tos inherit ttl
100
120 ip link
set dev
$swp1 master br1
123 bridge vlan del dev
$swp1 vid
1
125 ip link
set dev vx1 master br1
128 bridge vlan add dev
$swp1 vid
1 pvid untagged
2>&1 >/dev
/null \
129 |
grep -q mlxsw_spectrum
132 log_test
"extack - map VLAN at port"