tools/testing/selftests/net/forwarding/vxlan_bridge_1q_mc_ul.sh

Source file repositories/reference/linux-study-clean/tools/testing/selftests/net/forwarding/vxlan_bridge_1q_mc_ul.sh

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/net/forwarding/vxlan_bridge_1q_mc_ul.sh
Extension
.sh
Size
20520 bytes
Lines
753
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0

# +-----------------------------------------+
# | + $h1.10             + $h1.20           |
# | | 192.0.2.1/28       | 2001:db8:1::1/64 |
# | \________   ________/                   |
# |          \ /                            |
# |           + $h1                H1 (vrf) |
# +-----------|-----------------------------+
#             |
# +-----------|----------------------------------------------------------------+
# | +---------|--------------------------------------+       SWITCH (main vrf) |
# | |         + $swp1                   BR1 (802.1q) |                         |
# | |            vid 10 20                           |                         |
# | |                                                |                         |
# | |  + vx10 (vxlan)         + vx20 (vxlan)         |      + lo10 (dummy)     |
# | |    local 192.0.2.100      local 2001:db8:4::1  |        192.0.2.100/28   |
# | |    group 233.252.0.1      group ff0e::1:2:3    |        2001:db8:4::1/64 |
# | |    id 1000                id 2000              |                         |
# | |    vid 10 pvid untagged   vid 20 pvid untagged |                         |
# | +------------------------------------------------+                         |
# |                                                                            |
# |   + $swp2                                                        $swp3 +   |
# |   | 192.0.2.33/28                                        192.0.2.65/28 |   |
# |   | 2001:db8:2::1/64                                  2001:db8:3::1/64 |   |
# |   |                                                                    |   |
# +---|--------------------------------------------------------------------|---+
#     |                                                                    |
# +---|--------------------------------+  +--------------------------------|---+
# |   |                      H2 (vrf)  |  | H3 (vrf)                       |   |
# | +-|----------------------------+   |  |  +-----------------------------|-+ |
# | | + $h2           BR2 (802.1d) |   |  |  | BR3 (802.1d)            $h3 + | |
# | |                              |   |  |  |                               | |
# | | + v1$h2 (veth)               |   |  |  |                v1$h3 (veth) + | |
# | +-|----------------------------+   |  |  +-----------------------------|-+ |
# |   |                                |  |                                |   |
# +---|--------------------------------+  +--------------------------------|---+
#     |                                                                    |
# +---|--------------------------------+  +--------------------------------|---+
# |   + v2$h2 (veth)       NS2 (netns) |  | NS3 (netns)       v2$h3 (veth) +   |
# |     192.0.2.34/28                  |  |                  192.0.2.66/28     |
# |     2001:db8:2::2/64               |  |               2001:db8:3::2/64     |
# |                                    |  |                                    |
# | +--------------------------------+ |  | +--------------------------------+ |
# | |                  BR1 (802.1q)  | |  | |                   BR1 (802.1q) | |
# | |  + vx10 (vxlan)                | |  | |  + vx10 (vxlan)                | |
# | |    local 192.0.2.34            | |  | |    local 192.0.2.50            | |
# | |    group 233.252.0.1 dev v2$h2 | |  | |    group 233.252.0.1 dev v2$h3 | |
# | |    id 1000 dstport $VXPORT     | |  | |    id 1000 dstport $VXPORT     | |
# | |    vid 10 pvid untagged        | |  | |    vid 10 pvid untagged        | |
# | |                                | |  | |                                | |
# | |  + vx20 (vxlan)                | |  | |  + vx20 (vxlan)                | |
# | |    local 2001:db8:2::2         | |  | |    local 2001:db8:3::2         | |
# | |    group ff0e::1:2:3 dev v2$h2 | |  | |    group ff0e::1:2:3 dev v2$h3 | |
# | |    id 2000 dstport $VXPORT     | |  | |    id 2000 dstport $VXPORT     | |
# | |    vid 20 pvid untagged        | |  | |    vid 20 pvid untagged        | |
# | |                                | |  | |                                | |
# | |  + w1 (veth)                   | |  | |  + w1 (veth)                   | |
# | |  | vid 10 20                   | |  | |  | vid 10 20                   | |
# | +--|-----------------------------+ |  | +--|-----------------------------+ |
# |    |                               |  |    |                               |
# | +--|-----------------------------+ |  | +--|-----------------------------+ |
# | |  + w2 (veth)        VW2 (vrf)  | |  | |  + w2 (veth)        VW2 (vrf)  | |
# | |  |\                            | |  | |  |\                            | |
# | |  | + w2.10                     | |  | |  | + w2.10                     | |
# | |  |   192.0.2.3/28              | |  | |  |   192.0.2.4/28              | |
# | |  |                             | |  | |  |                             | |
# | |  + w2.20                       | |  | |  + w2.20                       | |
# | |    2001:db8:1::3/64            | |  | |    2001:db8:1::4/64            | |

Annotation

Implementation Notes