]> Gentwo Git Trees - linux/.git/commit
selftests: net: Test bridge backup port when port is administratively down
authorIdo Schimmel <idosch@nvidia.com>
Tue, 12 Aug 2025 08:02:13 +0000 (11:02 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Aug 2025 00:45:36 +0000 (17:45 -0700)
commit51ca1e67f416000bfd9a2a49c868538e744a317e
treeade0e125bf153793f2f5c7ca9d86d7aa41c8ab9e
parent3d05b24429e1de7a17c8fdccb04a04dbc8ad297b
selftests: net: Test bridge backup port when port is administratively down

Test that packets are redirected to the backup port when the primary
port is administratively down.

With the previous patch:

 # ./test_bridge_backup_port.sh
 [...]
 TEST: swp1 administratively down                                    [ OK ]
 TEST: No forwarding out of swp1                                     [ OK ]
 TEST: Forwarding out of vx0                                         [ OK ]
 TEST: swp1 administratively up                                      [ OK ]
 TEST: Forwarding out of swp1                                        [ OK ]
 TEST: No forwarding out of vx0                                      [ OK ]
 [...]
 Tests passed:  89
 Tests failed:   0

Without the previous patch:

 # ./test_bridge_backup_port.sh
 [...]
 TEST: swp1 administratively down                                    [ OK ]
 TEST: No forwarding out of swp1                                     [ OK ]
 TEST: Forwarding out of vx0                                         [FAIL]
 TEST: swp1 administratively up                                      [ OK ]
 TEST: Forwarding out of swp1                                        [ OK ]
 [...]
 Tests passed:  85
 Tests failed:   4

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20250812080213.325298-3-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/test_bridge_backup_port.sh