Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/net/forwarding/
H A 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 …]
H A Dlib.sh668 ip address $add_del $addrstr dev $if_name
678 ip link set dev $if_name master $vrf_name
679 ip link set dev $if_name up
681 __addr_add_del $if_name add "${addrs[@]}"
689 __addr_add_del $if_name del "${addrs[@]}"
691 ip link set dev $if_name down
692 ip link set dev $if_name nomaster
702 vrf_name=v$if_name
707 __simple_if_init $if_name $vrf_name "${array[@]}"
717 vrf_name=v$if_name
[all …]
H A Dlocal_termination.sh113 local if_name=$1; shift
115 local smac=$(mac_get $if_name)
119 $MZ -q $if_name "$pkt"
124 local if_name=$1
127 ip neigh add $H2_IPV4 lladdr $dmac dev $if_name
128 ping_do $if_name $H2_IPV4
129 ip neigh del $H2_IPV4 dev $if_name
134 local if_name=$1; shift
144 tcpdump_show $if_name | grep -q "$pattern"
153 local if_name=$1
[all …]
H A 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} \
H A Dmirror_gre_lag_lacp.sh62 local if_name=$1; shift
69 vlan_create $if_name $vid $vrf_name "${ips[@]}"
74 local if_name=$1; shift
78 vlan_destroy $if_name $vid
H A 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
H A 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
H A 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
H A 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
H A 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
H A 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
H A 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
H A Ddevlink_lib.sh575 local if_name=$1
577 devlink -j port show $if_name | jq -e '.[] | keys' | jq -r '.[]'
/linux/tools/testing/selftests/drivers/net/ocelot/
H A 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 …]
H A 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 | \
/linux/tools/hv/
H A Dhv_kvp_daemon.c572 char *if_name = NULL; in kvp_get_if_name() local
602 if_name = strdup(entry->d_name); in kvp_get_if_name()
611 return if_name; in kvp_get_if_name()
618 static char *kvp_if_name_to_mac(char *if_name) in kvp_if_name_to_mac() argument
628 if_name, "/address"); in kvp_if_name_to_mac()
680 static void kvp_get_ipconfig_info(char *if_name, in kvp_get_ipconfig_info() argument
691 sprintf(cmd, "%s %s", "ip route show dev", if_name); in kvp_get_ipconfig_info()
703 sprintf(cmd, "%s %s", "ip -f inet6 route show dev", if_name); in kvp_get_ipconfig_info()
728 sprintf(cmd, "exec %s %s", KVP_SCRIPTS_PATH "hv_get_dns_info", if_name); in kvp_get_ipconfig_info()
745 sprintf(cmd, "exec %s %s", KVP_SCRIPTS_PATH "hv_get_dhcp_info", if_name); in kvp_get_ipconfig_info()
[all …]
/linux/tools/testing/selftests/drivers/net/microchip/
H A Dksz9477_qos.sh105 local if_name=$1
108 dcb apptrust set dev ${if_name} order ${order}
324 local if_name=$1
327 prio="$(dcb -j app show dev ${if_name} default-prio | \
373 local if_name=$1
375 dcb -j apptrust show dev ${if_name} | jq -r '.order[]' | \
502 local if_name=$1
503 dcb -j app show dev ${if_name} | jq -c '.dscp_prio'
508 local if_name=$1
511 dcb app replace dev ${if_name} dscp-prio ${dscp}:${prio}
/linux/net/tipc/
H A Dbearer.c142 char *if_name; in bearer_name_validate() local
152 if_name = strchr(media_name, ':'); in bearer_name_validate()
153 if (if_name == NULL) in bearer_name_validate()
155 *(if_name++) = 0; in bearer_name_validate()
156 media_len = if_name - media_name; in bearer_name_validate()
157 if_len = strlen(if_name) + 1; in bearer_name_validate()
169 if (strscpy(name_parts->if_name, if_name, in bearer_name_validate()
H A Dlink.c156 char if_name[TIPC_MAX_IF_NAME]; member
476 bool tipc_link_create(struct net *net, char *if_name, int bearer_id, in tipc_link_create() argument
507 self_str, if_name, peer_str); in tipc_link_create()
509 strcpy(l->if_name, if_name); in tipc_link_create()
1903 strcpy(data, l->if_name); in tipc_link_build_proto_msg()
2191 char *if_name; in tipc_link_proto_rcv() local
2224 if_name = strrchr(l->name, ':') + 1; in tipc_link_proto_rcv()
2225 if (sizeof(l->name) - (if_name - l->name) <= TIPC_MAX_IF_NAME) in tipc_link_proto_rcv()
2229 strncpy(if_name, data, TIPC_MAX_IF_NAME); in tipc_link_proto_rcv()
H A Dlink.h74 bool tipc_link_create(struct net *net, char *if_name, int bearer_id,
H A Dbearer.h181 char if_name[TIPC_MAX_IF_NAME]; member
/linux/include/uapi/linux/
H A Dgsmmux.h82 char if_name[IFNAMSIZ]; member
/linux/include/rdma/
H A Diw_portmap.h30 char if_name[IWPM_IFNAME_SIZE]; member
/linux/drivers/infiniband/core/
H A Diwpm_msg.c94 pm_msg->if_name, IWPM_NLA_REG_IF_NAME); in iwpm_register_pid()
109 __func__, pm_msg->dev_name, pm_msg->if_name, iwpm_ulib_name); in iwpm_register_pid()
H A Diwcm.c518 strlen(ifname) >= sizeof(pm_reg_msg.if_name)) in iw_cm_map()
525 strcpy(pm_reg_msg.if_name, ifname); in iw_cm_map()

12