]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: vxlan: Test FDB un/marking on VXLAN join/leave
authorPetr Machata <petrm@mellanox.com>
Fri, 7 Dec 2018 19:55:18 +0000 (19:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2018 20:59:08 +0000 (12:59 -0800)
commit9417cb37ebff317f7f5c3f131670c5cda8c8b5b8
treef0dfd09484b2c7e00bd8433daacf70a809a7a348
parent83c6c4a0faad1d4e9e23941a72e204a381415b1e
selftests: mlxsw: vxlan: Test FDB un/marking on VXLAN join/leave

When a VXLAN device is attached to an offloaded bridge, or when a
front-panel port is attached to a bridge that already has a VXLAN
device, mlxsw should offload the existing offloadable FDB entries.
Similarly when VXLAN device is downed, the FDB entries are unoffloaded,
and the marks thus need to be cleared. Similarly when a front-panel port
device is attached to a bridge with a VXLAN device, or when VLAN flags
are tweaked on a VXLAN port attached to a VLAN-aware bridge.

Test that the replaying / clearing logic works by observing transitions
in presence of offload marks under different scenarios.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/vxlan.sh