selftests: forwarding: vxlan_reserved: add gbp changelink test

On a device created with gbp, run the reserved bit probes before and
after an unrelated changelink. Check that what the device accepts has
not changed.

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/20261023-b4-vxlan-changelink-gbp-v1-2-f0d13951c09b@proxmox.com
Tested-by: Gabriel Goller <g.goller@proxmox.com>
Reviewed-by: Gabriel Goller <g.goller@proxmox.com>
Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
Hannes Laimer 2026-10-23 13:14:28 +02:00 committed by Paolo Abeni
parent e3a629477d
commit e7cb2f638f

View File

@ -40,6 +40,7 @@
reserved_31_test
reserved_56_test
reserved_63_test
gbp_changelink_test
"}
NUM_NETIFS=4
@ -338,6 +339,20 @@ reserved_63_test()
reserved_test 63
}
gbp_changelink_test_do()
{
vxlan_device_add gbp
__default_test_do 25 "gbp"
ip link set dev vx1 type vxlan ageing 300
__default_test_do 25 "gbp after changelink"
}
gbp_changelink_test()
{
in_defer_scope \
gbp_changelink_test_do
}
trap cleanup EXIT
setup_prepare