xref: /linux/tools/testing/selftests/net/forwarding/forwarding.config.sample (revision eb01fe7abbe2d0b38824d2a93fdb4cc3eaf2ccc1)
1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0
3
4##############################################################################
5# Topology description. p1 looped back to p2, p3 to p4 and so on.
6declare -A NETIFS
7
8NETIFS[p1]=veth0
9NETIFS[p2]=veth1
10NETIFS[p3]=veth2
11NETIFS[p4]=veth3
12NETIFS[p5]=veth4
13NETIFS[p6]=veth5
14NETIFS[p7]=veth6
15NETIFS[p8]=veth7
16NETIFS[p9]=veth8
17NETIFS[p10]=veth9
18
19# Port that does not have a cable connected.
20NETIF_NO_CABLE=eth8
21
22##############################################################################
23# Defines
24
25# IPv4 ping utility name
26PING=ping
27# IPv6 ping utility name. Some distributions use 'ping' for IPv6.
28PING6=ping6
29# Packet generator. Some distributions use 'mz'.
30MZ=mausezahn
31# mausezahn delay between transmissions in microseconds.
32MZ_DELAY=0
33# Time to wait after interfaces participating in the test are all UP
34WAIT_TIME=5
35# Whether to pause on failure or not.
36PAUSE_ON_FAIL=no
37# Whether to pause on cleanup or not.
38PAUSE_ON_CLEANUP=no
39# Type of network interface to create
40NETIF_TYPE=veth
41# Whether to create virtual interfaces (veth) or not
42NETIF_CREATE=yes
43# Timeout (in seconds) before ping exits regardless of how many packets have
44# been sent or received
45PING_TIMEOUT=5
46# Minimum ageing_time (in centiseconds) supported by hardware
47LOW_AGEING_TIME=1000
48# Flag for tc match, supposed to be skip_sw/skip_hw which means do not process
49# filter by software/hardware
50TC_FLAG=skip_hw
51# IPv6 traceroute utility name.
52TROUTE6=traceroute6
53
54