Searched refs:xsk (Results 1 – 6 of 6) sorted by relevance
117 int xsk_socket__fd(const struct xsk_socket *xsk) in xsk_socket__fd() argument119 return xsk ? xsk->fd : -EINVAL; in xsk_socket__fd()412 static int xsk_load_xdp_prog(struct xsk_socket *xsk) in xsk_load_xdp_prog() argument415 struct xsk_ctx *ctx = xsk->ctx; in xsk_load_xdp_prog()511 static int xsk_create_bpf_link(struct xsk_socket *xsk) in xsk_create_bpf_link() argument514 struct xsk_ctx *ctx = xsk->ctx; in xsk_create_bpf_link()519 err = bpf_get_link_xdp_id(ctx->ifindex, &prog_id, xsk->config.xdp_flags); in xsk_create_bpf_link()533 opts.flags = xsk->config.xdp_flags & ~(XDP_FLAGS_UPDATE_IF_NOEXIST | XDP_FLAGS_REPLACE); in xsk_create_bpf_link()545 static int xsk_get_max_queues(struct xsk_socket *xsk) in xsk_get_max_queues() argument548 struct xsk_ctx *ctx = xsk->ctx; in xsk_get_max_queues()[all …]
249 LIBBPF_API int xsk_socket__fd(const struct xsk_socket *xsk);268 LIBBPF_API int xsk_socket__update_xskmap(struct xsk_socket *xsk,298 LIBBPF_API int xsk_socket__create(struct xsk_socket **xsk,316 LIBBPF_API void xsk_socket__delete(struct xsk_socket *xsk);
2 netlink.o bpf_prog_linfo.o libbpf_probes.o xsk.o hashmap.o \
226 INSTALL_HEADERS = bpf.h libbpf.h btf.h libbpf_common.h libbpf_legacy.h xsk.h \
280 struct xsk_socket_info *xsk; in xsk_configure_socket() local285 xsk = calloc(1, sizeof(struct xsk_socket_info)); in xsk_configure_socket()286 if (!xsk) in xsk_configure_socket()289 xsk->umem = ifobject->umem; in xsk_configure_socket()297 rxr = (ifobject->fv.vector == rx) ? &xsk->rx : NULL; in xsk_configure_socket()298 txr = (ifobject->fv.vector == tx) ? &xsk->tx : NULL; in xsk_configure_socket()300 rxr = &xsk->rx; in xsk_configure_socket()301 txr = &xsk->tx; in xsk_configure_socket()304 ret = xsk_socket__create(&xsk->xsk, ifobject->ifname, idx, in xsk_configure_socket()309 ifobject->xsk_arr[idx] = xsk; in xsk_configure_socket()[all …]
96 struct xsk_socket *xsk; member121 struct xsk_socket_info *xsk; member