xsks 100 samples/bpf/xdpsock_user.c struct xsk_socket_info *xsks[MAX_SOCKS]; xsks 146 samples/bpf/xdpsock_user.c for (i = 0; i < num_socks && xsks[i]; i++) { xsks 150 samples/bpf/xdpsock_user.c rx_pps = (xsks[i]->rx_npkts - xsks[i]->prev_rx_npkts) * xsks 152 samples/bpf/xdpsock_user.c tx_pps = (xsks[i]->tx_npkts - xsks[i]->prev_tx_npkts) * xsks 161 samples/bpf/xdpsock_user.c printf(fmt, "rx", rx_pps, xsks[i]->rx_npkts); xsks 162 samples/bpf/xdpsock_user.c printf(fmt, "tx", tx_pps, xsks[i]->tx_npkts); xsks 164 samples/bpf/xdpsock_user.c xsks[i]->prev_rx_npkts = xsks[i]->rx_npkts; xsks 165 samples/bpf/xdpsock_user.c xsks[i]->prev_tx_npkts = xsks[i]->tx_npkts; xsks 198 samples/bpf/xdpsock_user.c struct xsk_umem *umem = xsks[0]->umem->umem; xsks 203 samples/bpf/xdpsock_user.c xsk_socket__delete(xsks[0]->xsk); xsks 595 samples/bpf/xdpsock_user.c fds[i].fd = xsk_socket__fd(xsks[i]->xsk); xsks 607 samples/bpf/xdpsock_user.c rx_drop(xsks[i], fds); xsks 642 samples/bpf/xdpsock_user.c fds[0].fd = xsk_socket__fd(xsks[i]->xsk); xsks 657 samples/bpf/xdpsock_user.c tx_only(xsks[i], frame_nb[i]); xsks 715 samples/bpf/xdpsock_user.c fds[i].fd = xsk_socket__fd(xsks[i]->xsk); xsks 727 samples/bpf/xdpsock_user.c l2fwd(xsks[i], fds); xsks 757 samples/bpf/xdpsock_user.c xsks[num_socks++] = xsk_configure_socket(umem);