/linux/tools/testing/selftests/bpf/ |
A D | xdping.c | 100 char *ifname = NULL; in main() local 119 ifname = optarg; in main() 120 ifindex = if_nametoindex(ifname); in main() 123 ifname); in main() 143 if (!ifname) { in main() 201 printf("Setting up XDP for %s, please wait...\n", ifname); in main() 206 fprintf(stderr, "Link set xdp fd failed for %s\n", ifname); in main() 214 ifname); in main() 238 count, ifname, argv[optind]); in main()
|
A D | xdp_redirect_multi.c | 48 char ifname[IF_NAMESIZE]; in get_mac_addr() local 56 if (!if_indextoname(ifindex, ifname)) in get_mac_addr() 59 strcpy(ifr.ifr_name, ifname); in get_mac_addr() 95 char ifname[IF_NAMESIZE]; in main() local 137 if (!if_indextoname(ifaces[i], ifname)) { in main()
|
/linux/drivers/staging/rtl8712/ |
A D | os_intfs.c | 33 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/drivers/net/bonding/ |
A D | bond_sysfs.c | 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() 110 pr_info("%s is being deleted...\n", ifname); in bonding_store_bonds() [all …]
|
A D | bond_options.c | 843 char ifname[IFNAMSIZ] = { 0, }; in bond_option_active_slave_set() local 847 sscanf(newval->string, "%15s", ifname); /* IFNAMSIZ */ in bond_option_active_slave_set() 848 if (!strlen(ifname) || newval->string[0] == '\n') { in bond_option_active_slave_set() 851 slave_dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_active_slave_set() 1450 char *ifname; in bond_option_slaves_set() local 1454 ifname = command + 1; in bond_option_slaves_set() 1457 !dev_valid_name(ifname)) in bond_option_slaves_set() 1460 dev = __dev_get_by_name(dev_net(bond->dev), ifname); in bond_option_slaves_set() 1463 ifname); in bond_option_slaves_set()
|
/linux/tools/lib/bpf/ |
A D | xsk.c | 78 char ifname[IFNAMSIZ]; member 557 memcpy(ifr.ifr_name, ctx->ifname, IFNAMSIZ - 1); in xsk_get_max_queues() 770 char ifname[IFNAMSIZ]; in xsk_create_xsk_struct() local 778 interface = if_indextoname(ifindex, &ifname[0]); in xsk_create_xsk_struct() 785 memcpy(ctx->ifname, ifname, IFNAMSIZ -1); in xsk_create_xsk_struct() 786 ctx->ifname[IFNAMSIZ - 1] = 0; in xsk_create_xsk_struct() 941 const char *ifname, __u32 queue_id, in xsk_create_ctx() argument 968 memcpy(ctx->ifname, ifname, IFNAMSIZ - 1); in xsk_create_ctx() 969 ctx->ifname[IFNAMSIZ - 1] = '\0'; in xsk_create_ctx() 1012 const char *ifname, in xsk_socket__create_shared() argument [all …]
|
A D | libbpf_probes.c | 27 char ifname[IF_NAMESIZE], path[64], buf[8]; in get_vendor_id() local 31 if (!if_indextoname(ifindex, ifname)) in get_vendor_id() 34 snprintf(path, sizeof(path), "/sys/class/net/%s/device/vendor", ifname); in get_vendor_id()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | fweh.c | 158 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() 242 memcpy(emsg.ifname, emsg_be->ifname, sizeof(emsg.ifname)); in brcmf_fweh_event_worker()
|
/linux/include/uapi/linux/ |
A D | atmbr2684.h | 58 char ifname[IFNAMSIZ]; member 72 char ifname[IFNAMSIZ]; member
|
/linux/drivers/net/can/ |
A D | vxcan.c | 171 char ifname[IFNAMSIZ]; in vxcan_newlink() local 195 nla_strscpy(ifname, tbp[IFLA_IFNAME], IFNAMSIZ); in vxcan_newlink() 198 snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d"); in vxcan_newlink() 206 peer = rtnl_create_link(peer_net, ifname, name_assign_type, in vxcan_newlink()
|
/linux/samples/bpf/ |
A D | xdp_rxq_info_user.c | 31 static char *ifname; variable 72 ifindex, ifname); in int_exit() 348 ifname, ifindex, action2str(action), options2str(cfg_opt)); in stats_print() 502 ifname = (char *)&ifname_buf; in main() 503 strncpy(ifname, optarg, IF_NAMESIZE); in main() 504 ifindex = if_nametoindex(ifname); in main()
|
A D | xdp_redirect_map_multi_user.c | 87 char ifname[IF_NAMESIZE]; in main() local 152 if (!if_indextoname(ifaces[i], ifname)) { in main()
|
/linux/fs/ksmbd/ |
A D | transport_tcp.c | 41 static struct interface *alloc_iface(char *ifname); 558 static struct interface *alloc_iface(char *ifname) in alloc_iface() argument 562 if (!ifname) in alloc_iface() 567 kfree(ifname); in alloc_iface() 571 iface->name = ifname; in alloc_iface()
|
/linux/drivers/staging/rtl8723bs/os_dep/ |
A D | os_intfs.c | 114 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() 815 char *name = if1->registrypriv.ifname; in rtw_drv_register_netdev()
|
A D | osdep_service.c | 111 int rtw_change_ifname(struct adapter *padapter, const char *ifname) in rtw_change_ifname() argument 143 rtw_init_netdev_name(pnetdev, ifname); in rtw_change_ifname()
|
/linux/net/l2tp/ |
A D | l2tp_core.h | 61 char *ifname; member 95 char ifname[IFNAMSIZ]; member 233 const char *ifname);
|
A D | l2tp_eth.c | 256 if (cfg->ifname) { in l2tp_eth_create() 257 strlcpy(name, cfg->ifname, IFNAMSIZ); in l2tp_eth_create() 317 strlcpy(session->ifname, dev->name, IFNAMSIZ); in l2tp_eth_create()
|
/linux/drivers/staging/r8188eu/os_dep/ |
A D | os_intfs.c | 98 static char *ifname = "wlan%d"; variable 99 module_param(ifname, charp, 0644); 100 MODULE_PARM_DESC(ifname, "The default name to allocate for first interface"); 224 snprintf(registry_par->ifname, 16, "%s", ifname); in loadparam() 336 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname) in rtw_init_netdev_name() argument 340 err = dev_alloc_name(pnetdev, ifname); in rtw_init_netdev_name()
|
A D | osdep_service.c | 134 int rtw_change_ifname(struct adapter *padapter, const char *ifname) in rtw_change_ifname() argument 168 rtw_init_netdev_name(pnetdev, ifname); in rtw_change_ifname()
|
/linux/net/core/ |
A D | pktgen.c | 481 const char *ifname, bool exact); 1963 const char *ifname, int remove) in __pktgen_NN_threads() argument 2002 __func__, ifname); in pktgen_mark_device() 2075 const char *ifname) in pktgen_dev_get_by_name() argument 2080 for (i = 0; ifname[i] != '@'; i++) { in pktgen_dev_get_by_name() 2084 b[i] = ifname[i]; in pktgen_dev_get_by_name() 2116 pr_err("device is down: \"%s\"\n", ifname); in pktgen_setup_dev() 3676 const char *ifname, bool exact) in pktgen_find_dev() argument 3679 size_t len = strlen(ifname); in pktgen_find_dev() 3749 strcpy(pkt_dev->odevname, ifname); in pktgen_add_device() [all …]
|
/linux/tools/testing/selftests/netfilter/ |
A D | nft_nat_zones.sh | 164 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/drivers/scsi/fcoe/ |
A D | fcoe_transport.c | 711 char ifname[IFNAMSIZ + 2]; in fcoe_if_to_netdev() local 714 strlcpy(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()
|
/linux/include/net/ |
A D | rtnetlink.h | 70 const char *ifname, 170 struct net_device *rtnl_create_link(struct net *net, const char *ifname,
|
/linux/tools/bpf/bpftool/ |
A D | feature.c | 904 char *ifname; in do_probe() local 927 ifname = GET_ARG(); in do_probe() 928 ifindex = if_nametoindex(ifname); in do_probe() 930 p_err("unrecognized netdevice '%s': %s", ifname, in do_probe()
|
/linux/tools/testing/selftests/net/ |
A D | udpgso.c | 277 static unsigned int get_device_mtu(int fd, const char *ifname) in get_device_mtu() argument 283 strcpy(ifr.ifr_name, ifname); in get_device_mtu() 291 static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) in __set_device_mtu() argument 298 strcpy(ifr.ifr_name, ifname); in __set_device_mtu()
|