tools/testing/selftests/net/forwarding/router_bridge_lag.sh
Source file repositories/reference/linux-study-clean/tools/testing/selftests/net/forwarding/router_bridge_lag.sh
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/net/forwarding/router_bridge_lag.sh- Extension
.sh- Size
- 6985 bytes
- Lines
- 325
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: tools
- Status
- atlas-only
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# +----------------------------+ +--------------------------+
# | H1 (vrf) | | H2 (vrf) |
# | | | |
# | + LAG1 (team) | | + LAG4 (team) |
# | | 192.0.2.1/28 | | | 192.0.2.130/28 |
# | | 2001:db8:1::1/64 | | | 2001:db8:2::2/64 |
# | __^___ | | __^_____ |
# | / \ | | / \ |
# | + $h1 + $h4 | | + $h2 + $h3 |
# | | | | | | | |
# +----|--------|--------------+ +-|----------|-------------+
# | | | |
# +----|--------|------------------------------------|----------|-------------+
# | SW | | | | |
# | + $swp1 + $swp4 + $swp2 + $swp3 |
# | \__ ___/ \__ _____/ |
# | v v |
# | +------|-------------------------------+ | |
# | | + LAG2 BR1 (802.1q) | + LAG3 (team) |
# | | (team) 192.0.2.2/28 | 192.0.2.129/28 |
# | | 2001:db8:1::2/64 | 2001:db8:2::1/64 |
# | | | |
# | +--------------------------------------+ |
# +---------------------------------------------------------------------------+
: ${ALL_TESTS:="
ping_ipv4
ping_ipv6
$(: exercise remastering of LAG2 slaves )
config_deslave_swp4
config_wait
ping_ipv4
ping_ipv6
config_enslave_swp4
config_deslave_swp1
config_wait
ping_ipv4
ping_ipv6
config_deslave_swp4
config_enslave_swp1
config_enslave_swp4
config_wait
ping_ipv4
ping_ipv6
$(: exercise remastering of LAG2 itself )
config_remaster_lag2
config_wait
ping_ipv4
ping_ipv6
$(: exercise remastering of LAG3 slaves )
config_deslave_swp2
config_wait
ping_ipv4
ping_ipv6
config_enslave_swp2
config_deslave_swp3
config_wait
ping_ipv4
ping_ipv6
config_deslave_swp2
config_enslave_swp3
config_enslave_swp2
config_wait
ping_ipv4
Annotation
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: atlas-only.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.