Searched refs:tx_port_map_fd (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | xdp_redirect_map_user.c | 111 int tx_port_map_fd; in main() local 174 tx_port_map_fd = bpf_object__find_map_fd_by_name(obj, "tx_port"); in main() 176 if (tx_port_map_fd < 0 || rxcnt_map_fd < 0) { in main() 212 ret = bpf_map_update_elem(tx_port_map_fd, &key, &ifindex_out, 0); in main()
|
H A D | xdp_redirect_user.c | 105 int prog_fd, tx_port_map_fd, opt; in main() local 175 tx_port_map_fd = bpf_object__find_map_fd_by_name(obj, "tx_port"); in main() 177 if (tx_port_map_fd < 0 || rxcnt_map_fd < 0) { in main() 213 ret = bpf_map_update_elem(tx_port_map_fd, &key, &ifindex_out, 0); in main()
|
H A D | xdp_router_ipv4_user.c | 37 static int tx_port_map_fd; variable 200 assert(bpf_map_update_elem(tx_port_map_fd, in read_route() 692 tx_port_map_fd = bpf_object__find_map_fd_by_name(obj, "tx_port"); in main() 694 exact_match_map_fd < 0 || tx_port_map_fd < 0) { in main()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | xdp_router_ipv4_user.c | 39 static int tx_port_map_fd; variable 154 assert(bpf_map_update_elem(tx_port_map_fd, in read_route() 655 tx_port_map_fd = bpf_map__fd(skel->maps.tx_port); in main() 656 if (tx_port_map_fd < 0) { in main() 657 fprintf(stderr, "Failed loading tx_port_map_fd %s\n", in main() 658 strerror(-tx_port_map_fd)); in main() 668 ifname_list[i], strerror(-tx_port_map_fd)); in main()
|
Completed in 3 milliseconds