tools/testing/selftests/net/test_vxlan_mdb.sh
Source file repositories/reference/linux-study-clean/tools/testing/selftests/net/test_vxlan_mdb.sh
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/net/test_vxlan_mdb.sh- Extension
.sh- Size
- 94849 bytes
- Lines
- 2563
- 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
#
# This test is for checking VXLAN MDB functionality. The topology consists of
# two sets of namespaces: One for the testing of IPv4 underlay and another for
# IPv6. In both cases, both IPv4 and IPv6 overlay traffic are tested.
#
# Data path functionality is tested by sending traffic from one of the upper
# namespaces and checking using ingress tc filters that the expected traffic
# was received by one of the lower namespaces.
#
# +------------------------------------+ +------------------------------------+
# | ns1_v4 | | ns1_v6 |
# | | | |
# | br0.10 br0.4000 br0.20 | | br0.10 br0.4000 br0.20 |
# | + + + | | + + + |
# | | | | | | | | | |
# | | | | | | | | | |
# | +---------+---------+ | | +---------+---------+ |
# | | | | | |
# | | | | | |
# | + | | + |
# | br0 | | br0 |
# | + | | + |
# | | | | | |
# | | | | | |
# | + | | + |
# | vx0 | | vx0 |
# | | | |
# | | | |
# | veth0 | | veth0 |
# | + | | + |
# +-----------------|------------------+ +-----------------|------------------+
# | |
# +-----------------|------------------+ +-----------------|------------------+
# | + | | + |
# | veth0 | | veth0 |
# | | | |
# | | | |
# | vx0 | | vx0 |
# | + | | + |
# | | | | | |
# | | | | | |
# | + | | + |
# | br0 | | br0 |
# | + | | + |
# | | | | | |
# | | | | | |
# | +---------+---------+ | | +---------+---------+ |
# | | | | | | | | | |
# | | | | | | | | | |
# | + + + | | + + + |
# | br0.10 br0.4000 br0.10 | | br0.10 br0.4000 br0.20 |
# | | | |
# | ns2_v4 | | ns2_v6 |
# +------------------------------------+ +------------------------------------+
source lib.sh
ret=0
CONTROL_PATH_TESTS="
basic_star_g_ipv4_ipv4
basic_star_g_ipv6_ipv4
basic_star_g_ipv4_ipv6
basic_star_g_ipv6_ipv6
basic_sg_ipv4_ipv4
basic_sg_ipv6_ipv4
basic_sg_ipv4_ipv6
basic_sg_ipv6_ipv6
star_g_ipv4_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.