• Petr Machata's avatar
    selftests: forwarding: Test routed bridge interface · 5b1e7f9e
    Petr Machata authored
    Add test for cases where bridge itself acts as a router interface, with
    front panel port attached to the bridge in question.
    
    In the first test (router_bridge.sh), VLAN memberships are not
    configured in any way, and everything uses default PVID of 1. Thus
    traffic in $h1 and $h2 is untagged. This test ensures that the previous
    patches didn't break a currently working scenario.
    
    In the second test (router_bridge_vlan.sh), a VLAN 555 pvid untagged is
    added to the bridge CPU port, with that VLAN leaving the bridge tagged
    through its sole member port. The traffic is therefore expected to come
    out tagged at $h1. This tests the fix introduced in the previous
    patches.
    Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
    Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    5b1e7f9e
router_bridge_vlan.sh 2.04 KB