Searched refs:sxdp (Results 1 – 2 of 2) sorted by relevance
1015 struct sockaddr_xdp sxdp = {}; in xsk_socket__create_shared() local1143 sxdp.sxdp_family = PF_XDP; in xsk_socket__create_shared()1144 sxdp.sxdp_ifindex = ctx->ifindex; in xsk_socket__create_shared()1145 sxdp.sxdp_queue_id = ctx->queue_id; in xsk_socket__create_shared()1147 sxdp.sxdp_flags |= XDP_SHARED_UMEM; in xsk_socket__create_shared()1148 sxdp.sxdp_shared_umem_fd = umem->fd; in xsk_socket__create_shared()1150 sxdp.sxdp_flags = xsk->config.bind_flags; in xsk_socket__create_shared()1153 err = bind(xsk->fd, (struct sockaddr *)&sxdp, sizeof(sxdp)); in xsk_socket__create_shared()
878 struct sockaddr_xdp *sxdp = (struct sockaddr_xdp *)addr; in xsk_bind() local887 if (sxdp->sxdp_family != AF_XDP) in xsk_bind()890 flags = sxdp->sxdp_flags; in xsk_bind()902 dev = dev_get_by_index(sock_net(sk), sxdp->sxdp_ifindex); in xsk_bind()913 qid = sxdp->sxdp_queue_id; in xsk_bind()932 sock = xsk_lookup_xsk_from_fd(sxdp->sxdp_shared_umem_fd); in xsk_bind()