Home
last modified time | relevance | path

Searched refs:if_name (Results 1 – 21 of 21) sorted by relevance

/tools/testing/selftests/drivers/net/dsa/
Dno_forwarding.sh33 local if_name=$1
37 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
42 local if_name=$1
45 ip neigh add $H2_IPV4 lladdr $dmac dev $if_name
46 ping_do $if_name $H2_IPV4
47 ip neigh del $H2_IPV4 dev $if_name
52 local if_name=$1
54 ping_do $if_name $IPV4_ALLNODES "-I $if_name"
59 local if_name=$1
62 ip -6 neigh add $H2_IPV6 lladdr $dmac dev $if_name
[all …]
Dlocal_termination.sh52 local if_name=$1
56 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
61 local if_name=$1
64 ip neigh add $H2_IPV4 lladdr $dmac dev $if_name
65 ping_do $if_name $H2_IPV4
66 ip neigh del $H2_IPV4 dev $if_name
71 local if_name=$1
80 tcpdump_show $if_name | grep -q "$pattern"
84 log_test "$if_name: $type"
89 local if_name=$1
[all …]
Dlib.sh646 ip address $add_del $addrstr dev $if_name
656 ip link set dev $if_name master $vrf_name
657 ip link set dev $if_name up
659 __addr_add_del $if_name add "${addrs[@]}"
667 __addr_add_del $if_name del "${addrs[@]}"
669 ip link set dev $if_name down
670 ip link set dev $if_name nomaster
680 vrf_name=v$if_name
685 __simple_if_init $if_name $vrf_name "${array[@]}"
695 vrf_name=v$if_name
[all …]
/tools/testing/selftests/net/forwarding/
Dno_forwarding.sh33 local if_name=$1
37 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
42 local if_name=$1
45 ip neigh add $H2_IPV4 lladdr $dmac dev $if_name
46 ping_do $if_name $H2_IPV4
47 ip neigh del $H2_IPV4 dev $if_name
52 local if_name=$1
54 ping_do $if_name $IPV4_ALLNODES "-I $if_name"
59 local if_name=$1
62 ip -6 neigh add $H2_IPV6 lladdr $dmac dev $if_name
[all …]
Dlocal_termination.sh52 local if_name=$1
56 $MZ -q $if_name "$dmac $smac $NON_IP_PKT"
61 local if_name=$1
64 ip neigh add $H2_IPV4 lladdr $dmac dev $if_name
65 ping_do $if_name $H2_IPV4
66 ip neigh del $H2_IPV4 dev $if_name
71 local if_name=$1
80 tcpdump_show $if_name | grep -q "$pattern"
84 log_test "$if_name: $type"
89 local if_name=$1
[all …]
Dlib.sh646 ip address $add_del $addrstr dev $if_name
656 ip link set dev $if_name master $vrf_name
657 ip link set dev $if_name up
659 __addr_add_del $if_name add "${addrs[@]}"
667 __addr_add_del $if_name del "${addrs[@]}"
669 ip link set dev $if_name down
670 ip link set dev $if_name nomaster
680 vrf_name=v$if_name
685 __simple_if_init $if_name $vrf_name "${array[@]}"
695 vrf_name=v$if_name
[all …]
Dtsn_lib.sh70 for if_name in ${if_names}; do
71 extra_args="${extra_args} -i ${if_name}"
145 local if_name=$1
156 --interface ${if_name} \
Dmirror_gre_lag_lacp.sh59 local if_name=$1; shift
66 vlan_create $if_name $vid $vrf_name "${ips[@]}"
71 local if_name=$1; shift
75 vlan_destroy $if_name $vid
Dmirror_gre_bridge_1q_lag.sh61 local if_name=$1; shift
68 vlan_create $if_name $vid $vrf_name "${ips[@]}"
73 local if_name=$1; shift
77 vlan_destroy $if_name $vid
Dvxlan_asymmetric_ipv6.sh107 local if_name=$1; shift
112 ip link set dev $if_name master $vrf_name
114 ip link set dev $if_name up
116 ip address add $ip_addr/64 dev $if_name
118 dev $if_name
126 local if_name=$1; shift
131 ip neigh del $gw_ip dev $if_name
132 ip address del $ip_addr/64 dev $if_name
134 ip link set dev $if_name down
Dvxlan_asymmetric.sh107 local if_name=$1; shift
112 ip link set dev $if_name master $vrf_name
114 ip link set dev $if_name up
116 ip address add $ip_addr/24 dev $if_name
118 dev $if_name
126 local if_name=$1; shift
131 ip neigh del $gw_ip dev $if_name
132 ip address del $ip_addr/24 dev $if_name
134 ip link set dev $if_name down
Dvxlan_symmetric_ipv6.sh119 local if_name=$1; shift
124 ip link set dev $if_name master $vrf_name
126 ip link set dev $if_name up
128 ip address add $ip_addr/64 dev $if_name
130 dev $if_name
138 local if_name=$1; shift
143 ip neigh del $gw_ip dev $if_name
144 ip address del $ip_addr/64 dev $if_name
146 ip link set dev $if_name down
Dvxlan_symmetric.sh117 local if_name=$1; shift
122 ip link set dev $if_name master $vrf_name
124 ip link set dev $if_name up
126 ip address add $ip_addr/24 dev $if_name
128 dev $if_name
136 local if_name=$1; shift
141 ip neigh del $gw_ip dev $if_name
142 ip address del $ip_addr/24 dev $if_name
144 ip link set dev $if_name down
Drouter.sh215 local if_name=$1; shift
220 $MC_CLI -I $table_name add $if_name $s_addr $mcast $dest_ifs
225 local if_name=$1; shift
230 $MC_CLI -I $table_name remove $if_name $s_addr $mcast $dest_ifs
Drouter_multicast.sh214 local if_name=$1; shift
219 $MC_CLI -I $table_name add $if_name $s_addr $mcast $dest_ifs
224 local if_name=$1; shift
229 $MC_CLI -I $table_name remove $if_name $s_addr $mcast $dest_ifs
Ddevlink_lib.sh575 local if_name=$1
577 devlink -j port show $if_name | jq -e '.[] | keys' | jq -r '.[]'
/tools/testing/selftests/drivers/net/ocelot/
Dpsfp.sh56 local if_name=$1
58 tc qdisc add dev $if_name clsact
60 tc filter add dev $if_name ingress chain 0 pref 49152 flower \
66 local if_name=$1
68 tc qdisc del dev $if_name clsact
147 local if_name=$1
149 tc qdisc add dev ${if_name} clsact
151 tc filter add dev ${if_name} egress protocol 0x88f7 \
153 tc filter add dev ${if_name} egress protocol 802.1Q \
155 tc qdisc add dev ${if_name} handle 100: parent root mqprio num_tc 8 \
[all …]
Dbasic_qos.sh155 local if_name=$1; shift
165 ping_do ${if_name} $H2_IPV4 "-Q ${tos}"
176 ping_do ${if_name} $H2_IPV6 "-Q ${tos}"
189 local if_name=$1
192 prio="$(dcb -j app show dev ${if_name} default-prio | \
/tools/testing/selftests/drivers/net/team/
Dnet_forwarding_lib.sh646 ip address $add_del $addrstr dev $if_name
656 ip link set dev $if_name master $vrf_name
657 ip link set dev $if_name up
659 __addr_add_del $if_name add "${addrs[@]}"
667 __addr_add_del $if_name del "${addrs[@]}"
669 ip link set dev $if_name down
670 ip link set dev $if_name nomaster
680 vrf_name=v$if_name
685 __simple_if_init $if_name $vrf_name "${array[@]}"
695 vrf_name=v$if_name
[all …]
/tools/testing/selftests/drivers/net/bonding/
Dnet_forwarding_lib.sh646 ip address $add_del $addrstr dev $if_name
656 ip link set dev $if_name master $vrf_name
657 ip link set dev $if_name up
659 __addr_add_del $if_name add "${addrs[@]}"
667 __addr_add_del $if_name del "${addrs[@]}"
669 ip link set dev $if_name down
670 ip link set dev $if_name nomaster
680 vrf_name=v$if_name
685 __simple_if_init $if_name $vrf_name "${array[@]}"
695 vrf_name=v$if_name
[all …]
/tools/hv/
Dhv_kvp_daemon.c561 char *if_name = NULL; in kvp_get_if_name() local
591 if_name = strdup(entry->d_name); in kvp_get_if_name()
600 return if_name; in kvp_get_if_name()
607 static char *kvp_if_name_to_mac(char *if_name) in kvp_if_name_to_mac() argument
617 if_name, "/address"); in kvp_if_name_to_mac()
669 static void kvp_get_ipconfig_info(char *if_name, in kvp_get_ipconfig_info() argument
680 sprintf(cmd, "%s %s", "ip route show dev", if_name); in kvp_get_ipconfig_info()
692 sprintf(cmd, "%s %s", "ip -f inet6 route show dev", if_name); in kvp_get_ipconfig_info()
734 sprintf(cmd, KVP_SCRIPTS_PATH "%s %s", "hv_get_dhcp_info", if_name); in kvp_get_ipconfig_info()
803 kvp_get_ip_info(int family, char *if_name, int op, in kvp_get_ip_info() argument
[all …]