Searched refs:ifname (Results 1 – 9 of 9) sorted by relevance
/tools/testing/selftests/bpf/ |
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() 202 printf("Setting up XDP for %s, please wait...\n", ifname); in main() 207 fprintf(stderr, "Link set xdp fd failed for %s\n", ifname); in main() 215 ifname); in main() 239 count, ifname, argv[optind]); in main()
|
D | test_offload.py | 372 for ifname in listdir: 373 ifnames.append(ifname) 420 def __init__(self, nsimdev, port_index, ifname): argument 424 match = nsimnamere.match(ifname) 433 _, [self.dev] = ip("link show dev %s" % ifname)
|
/tools/lib/bpf/ |
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()
|
D | xsk.c | 67 char ifname[IFNAMSIZ]; member 404 memcpy(ifr.ifr_name, xsk->ifname, IFNAMSIZ - 1); in xsk_get_max_queues() 558 int xsk_socket__create(struct xsk_socket **xsk_ptr, const char *ifname, in xsk_socket__create() argument 594 xsk->ifindex = if_nametoindex(ifname); in xsk_socket__create() 599 memcpy(xsk->ifname, ifname, IFNAMSIZ - 1); in xsk_socket__create() 600 xsk->ifname[IFNAMSIZ - 1] = '\0'; in xsk_socket__create()
|
D | xsk.h | 232 const char *ifname, __u32 queue_id,
|
/tools/bpf/bpftool/ |
D | feature.c | 582 char *ifname; in do_probe() local 613 ifname = GET_ARG(); in do_probe() 614 ifindex = if_nametoindex(ifname); in do_probe() 616 p_err("unrecognized netdevice '%s': %s", ifname, in do_probe()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 387 static int create_tap(const char *ifname) in create_tap() argument 394 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in create_tap() 418 static int ifup(const char *ifname) in ifup() argument 423 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in ifup()
|
/tools/testing/selftests/net/ |
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()
|
D | nettest.c | 263 static int get_ifidx(const char *ifname) in get_ifidx() argument 268 if (!ifname || *ifname == '\0') in get_ifidx() 273 strcpy(ifdata.ifr_name, ifname); in get_ifidx()
|