2 # SPDX-License-Identifier: GPL-2.0
11 test_dup_macvlan_master
26 bridge monitor fdb
&> "$tmpf" &
30 bridge fdb
"$op" 00:11:22:33:44:55 vlan
1 "$@"
34 local count
=$
(grep -c -e 00:11:22:33:44:55 $tmpf)
36 check_err $?
"Got $count notifications, expected 1"
38 log_test
"$what $op: Duplicate notifications"
43 ip_link_add br up
type bridge vlan_filtering
1
44 do_test_dup add
"bridge" dev br self
45 do_test_dup del
"bridge" dev br self
50 ip_link_add br up
type bridge vlan_filtering
1
51 ip_link_add vx up
type vxlan id
2000 dstport
4789
54 do_test_dup add
"vxlan" dev vx self dst
192.0.2.1
55 do_test_dup del
"vxlan" dev vx self dst
192.0.2.1
58 test_dup_vxlan_master
()
60 ip_link_add br up
type bridge vlan_filtering
1
61 ip_link_add vx up
type vxlan id
2000 dstport
4789
64 do_test_dup add
"vxlan master" dev vx master
65 do_test_dup del
"vxlan master" dev vx master
68 test_dup_macvlan_self
()
70 ip_link_add
dd up
type dummy
71 ip_link_add
mv up link
dd type macvlan mode passthru
73 do_test_dup add
"macvlan self" dev
mv self
74 do_test_dup del
"macvlan self" dev
mv self
77 test_dup_macvlan_master
()
79 ip_link_add br up
type bridge vlan_filtering
1
80 ip_link_add
dd up
type dummy
81 ip_link_add
mv up link
dd type macvlan mode passthru
84 do_test_dup add
"macvlan master" dev
mv self
85 do_test_dup del
"macvlan master" dev
mv self