Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 25 of 75) sorted by relevance

123

/Linux-v6.6/tools/testing/selftests/net/
Dtun.c107 char ifname[IFNAMSIZ]; in FIXTURE() local
113 memset(self->ifname, 0, sizeof(self->ifname)); in FIXTURE_SETUP()
115 self->fd = tun_alloc(self->ifname); in FIXTURE_SETUP()
118 self->fd2 = tun_alloc(self->ifname); in FIXTURE_SETUP()
131 EXPECT_EQ(tun_delete(self->ifname), 0); in TEST_F()
132 EXPECT_EQ(tun_detach(self->fd, self->ifname), -1); in TEST_F()
137 EXPECT_EQ(tun_detach(self->fd, self->ifname), 0); in TEST_F()
138 EXPECT_EQ(tun_delete(self->ifname), 0); in TEST_F()
142 EXPECT_EQ(tun_detach(self->fd, self->ifname), 0); in TEST_F()
145 EXPECT_EQ(tun_delete(self->ifname), 0); in TEST_F()
[all …]
Dsrv6_hl2encap_red_l2vpn_test.sh508 local ifname="$4"
513 ip -netns "${nsname}" link set dev "${ifname}" down
516 dev "${ifname}"
521 dev "${ifname}" nodad
523 ip -netns "${nsname}" link set dev "${ifname}" up
/Linux-v6.6/tools/testing/selftests/bpf/
Dxdping.c99 char *ifname = NULL; in main() local
118 ifname = optarg; in main()
119 ifindex = if_nametoindex(ifname); in main()
122 ifname); in main()
142 if (!ifname) { in main()
198 printf("Setting up XDP for %s, please wait...\n", ifname); in main()
203 fprintf(stderr, "Link set xdp fd failed for %s\n", ifname); in main()
211 ifname); in main()
235 count, ifname, argv[optind]); in main()
Dxdp_hw_metadata.c51 const char *ifname; variable
305 static int rxq_num(const char *ifname) in rxq_num() argument
314 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in rxq_num()
330 static void hwtstamp_ioctl(int op, const char *ifname, struct hwtstamp_config *cfg) in hwtstamp_ioctl() argument
335 strncpy(ifr.ifr_name, ifname, IF_NAMESIZE - 1); in hwtstamp_ioctl()
357 static void hwtstamp_enable(const char *ifname) in hwtstamp_enable() argument
363 hwtstamp_ioctl(SIOCGHWTSTAMP, ifname, &saved_hwtstamp_cfg); in hwtstamp_enable()
364 saved_hwtstamp_ifname = strdup(ifname); in hwtstamp_enable()
367 hwtstamp_ioctl(SIOCSHWTSTAMP, ifname, &cfg); in hwtstamp_enable()
421 ifname = argv[1]; in main()
[all …]
Dxdp_features.c28 char ifname[IF_NAMESIZE]; member
189 if (!env.ifindex || !if_indextoname(env.ifindex, env.ifname)) { in parse_arg()
215 strcpy(env.ifname, "unknown"); in set_env_default()
261 env.ifname); in dut_run_echo_thread()
270 env.ifname, strerror(-err)); in dut_run_echo_thread()
335 env.ifname); in dut_attach_xdp_prog()
372 "Failed creating control socket on device %s\n", env.ifname); in dut_run()
380 env.ifname); in dut_run()
439 env.ifname); in dut_run()
559 env.ifname); in send_echo_msg()
[all …]
Dxdp_redirect_multi.c47 char ifname[IF_NAMESIZE]; in get_mac_addr() local
55 if (!if_indextoname(ifindex, ifname)) in get_mac_addr()
58 strcpy(ifr.ifr_name, ifname); in get_mac_addr()
91 char ifname[IF_NAMESIZE]; in main() local
133 if (!if_indextoname(ifaces[i], ifname)) { in main()
/Linux-v6.6/tools/testing/selftests/drivers/net/team/
Ddev_addr_lists.sh22 local ifname
24 for ifname in "${ifnames[@]}"; do
25 ip link del "$ifname" &>/dev/null
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dvrf_socket_lookup.c84 static int make_server(int sotype, const char *ip, int port, const char *ifname) in make_server() argument
92 if (ifname) { in make_server()
94 ifname, strlen(ifname) + 1); in make_server()
105 static int attach_progs(char *ifname, int tc_prog_fd, int xdp_prog_fd) in attach_progs() argument
112 ifindex = if_nametoindex(ifname); in attach_progs()
/Linux-v6.6/drivers/staging/rtl8712/
Dos_intfs.c33 static char ifname[IFNAMSIZ] = "wlan%d"; variable
88 module_param_string(ifname, ifname, sizeof(ifname), 0644);
110 MODULE_PARM_DESC(ifname, " Net interface name, wlan%d=default");
205 if (dev_alloc_name(pnetdev, ifname) < 0) { in r8712_init_netdev()
206 strscpy(ifname, "wlan%d", sizeof(ifname)); in r8712_init_netdev()
207 dev_alloc_name(pnetdev, ifname); in r8712_init_netdev()
/Linux-v6.6/tools/testing/selftests/drivers/net/bonding/
Ddev_addr_lists.sh25 local ifname
27 for ifname in "${ifnames[@]}"; do
28 ip link del "$ifname" &>/dev/null
/Linux-v6.6/samples/bpf/
Dxdp_fwd_user.c50 static int do_detach(int ifindex, const char *ifname, const char *app_name) in do_detach() argument
67 xdp_flags, ifname); in do_detach()
89 printf("ERROR: %s isn't attached to %s\n", app_name, ifname); in do_detach()
98 ifname, strerror(errno)); in do_detach()
/Linux-v6.6/drivers/net/bonding/
Dbond_sysfs.c62 static struct net_device *bond_get_by_name(const struct bond_net *bn, const char *ifname) in bond_get_by_name() argument
67 if (strncmp(bond->dev->name, ifname, IFNAMSIZ) == 0) in bond_get_by_name()
85 char *ifname; in bonding_store_bonds() local
89 ifname = command + 1; in bonding_store_bonds()
91 !dev_valid_name(ifname)) in bonding_store_bonds()
95 pr_info("%s is being created...\n", ifname); in bonding_store_bonds()
96 rv = bond_create(bn->net, ifname); in bonding_store_bonds()
99 pr_info("%s already exists\n", ifname); in bonding_store_bonds()
101 pr_info("%s creation failed\n", ifname); in bonding_store_bonds()
108 bond_dev = bond_get_by_name(bn, ifname); in bonding_store_bonds()
[all …]
/Linux-v6.6/include/uapi/linux/
Datmbr2684.h58 char ifname[IFNAMSIZ]; member
72 char ifname[IFNAMSIZ]; member
/Linux-v6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfweh.c158 brcmf_dbg(EVENT, "adding %s (%pM)\n", emsg->ifname, in brcmf_fweh_handle_if_event()
161 is_p2pdev, emsg->ifname, emsg->addr); in brcmf_fweh_handle_if_event()
246 memcpy(emsg.ifname, emsg_be->ifname, sizeof(emsg.ifname)); in brcmf_fweh_event_worker()
/Linux-v6.6/drivers/net/can/
Dvxcan.c184 char ifname[IFNAMSIZ]; in vxcan_newlink() local
203 nla_strscpy(ifname, tbp[IFLA_IFNAME], IFNAMSIZ); in vxcan_newlink()
206 snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d"); in vxcan_newlink()
214 peer = rtnl_create_link(peer_net, ifname, name_assign_type, in vxcan_newlink()
/Linux-v6.6/tools/net/ynl/samples/
Dnetdev.c21 char ifname[IF_NAMESIZE]; in netdev_print_device() local
27 name = if_indextoname(d->ifindex, ifname); in netdev_print_device()
/Linux-v6.6/net/l2tp/
Dl2tp_core.h61 char *ifname; member
95 char ifname[IFNAMSIZ]; member
233 const char *ifname);
Dl2tp_eth.c256 if (cfg->ifname) { in l2tp_eth_create()
257 strscpy(name, cfg->ifname, IFNAMSIZ); in l2tp_eth_create()
317 strscpy(session->ifname, dev->name, IFNAMSIZ); in l2tp_eth_create()
/Linux-v6.6/fs/smb/server/
Dtransport_tcp.c43 static struct interface *alloc_iface(char *ifname);
589 static struct interface *alloc_iface(char *ifname) in alloc_iface() argument
593 if (!ifname) in alloc_iface()
598 kfree(ifname); in alloc_iface()
602 iface->name = ifname; in alloc_iface()
/Linux-v6.6/drivers/staging/rtl8723bs/os_dep/
Dos_intfs.c114 static char *ifname = "wlan%d"; variable
115 module_param(ifname, charp, 0644);
116 MODULE_PARM_DESC(ifname, "The default name to allocate for first interface");
261 snprintf(registry_par->ifname, 16, "%s", ifname); in loadparam()
442 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument
444 if (dev_alloc_name(pnetdev, ifname) < 0) { in rtw_init_netdev_name()
445 pr_err("dev_alloc_name, fail for %s\n", ifname); in rtw_init_netdev_name()
817 char *name = if1->registrypriv.ifname; in rtw_drv_register_netdev()
/Linux-v6.6/tools/bpf/bpftool/
Dfeature.c146 char ifname[IF_NAMESIZE], path[64], buf[8]; in get_vendor_id() local
150 if (!if_indextoname(ifindex, ifname)) in get_vendor_id()
153 snprintf(path, sizeof(path), "/sys/class/net/%s/device/vendor", ifname); in get_vendor_id()
1168 char *ifname; in do_probe() local
1191 ifname = GET_ARG(); in do_probe()
1192 ifindex = if_nametoindex(ifname); in do_probe()
1194 p_err("unrecognized netdevice '%s': %s", ifname, in do_probe()
/Linux-v6.6/net/core/
Dpktgen.c480 static int pktgen_add_device(struct pktgen_thread *t, const char *ifname);
482 const char *ifname, bool exact);
1964 const char *ifname, int remove) in __pktgen_NN_threads() argument
1971 pkt_dev = pktgen_find_dev(t, ifname, exact); in __pktgen_NN_threads()
1986 static void pktgen_mark_device(const struct pktgen_net *pn, const char *ifname) in pktgen_mark_device() argument
1993 pr_debug("%s: marking %s for removal\n", __func__, ifname); in pktgen_mark_device()
1997 pkt_dev = __pktgen_NN_threads(pn, ifname, REMOVE); in pktgen_mark_device()
2003 __func__, ifname); in pktgen_mark_device()
2009 __func__, msec_per_try * i, ifname); in pktgen_mark_device()
2076 const char *ifname) in pktgen_dev_get_by_name() argument
[all …]
/Linux-v6.6/tools/testing/selftests/netfilter/
Dnft_nat_zones.sh164 type ifname : mark
173 type ipv4_addr . ifname . ipv4_addr
177 type ipv4_addr . inet_service . ifname . ipv4_addr . inet_service
182 type ipv6_addr . inet_service . ifname . ipv6_addr . inet_service
/Linux-v6.6/include/net/
Drtnetlink.h84 const char *ifname,
184 struct net_device *rtnl_create_link(struct net *net, const char *ifname,
/Linux-v6.6/drivers/scsi/fcoe/
Dfcoe_transport.c711 char ifname[IFNAMSIZ + 2]; in fcoe_if_to_netdev() local
714 strscpy(ifname, buffer, IFNAMSIZ); in fcoe_if_to_netdev()
715 cp = ifname + strlen(ifname); in fcoe_if_to_netdev()
716 while (--cp >= ifname && *cp == '\n') in fcoe_if_to_netdev()
718 return dev_get_by_name(&init_net, ifname); in fcoe_if_to_netdev()

123