Searched refs:xskb (Results 1 – 2 of 2) sorted by relevance
59 struct xdp_buff_xsk *xskb; in xp_create_and_assign_umem() local96 xskb = &pool->heads[i]; in xp_create_and_assign_umem()97 xskb->pool = pool; in xp_create_and_assign_umem()98 xskb->xdp.frame_sz = umem->chunk_size - umem->headroom; in xp_create_and_assign_umem()99 pool->free_heads[i] = xskb; in xp_create_and_assign_umem()461 struct xdp_buff_xsk *xskb; in __xp_alloc() local468 xskb = pool->free_heads[--pool->free_heads_cnt]; in __xp_alloc()473 xp_release(xskb); in __xp_alloc()488 xskb->orig_addr = addr; in __xp_alloc()489 xskb->xdp.data_hard_start = pool->addrs + addr + pool->headroom; in __xp_alloc()[all …]
137 void xp_release(struct xdp_buff_xsk *xskb) in xp_release() argument139 xskb->pool->free_heads[xskb->pool->free_heads_cnt++] = xskb; in xp_release()142 static u64 xp_get_handle(struct xdp_buff_xsk *xskb) in xp_get_handle() argument144 u64 offset = xskb->xdp.data - xskb->xdp.data_hard_start; in xp_get_handle()146 offset += xskb->pool->headroom; in xp_get_handle()147 if (!xskb->pool->unaligned) in xp_get_handle()148 return xskb->orig_addr + offset; in xp_get_handle()149 return xskb->orig_addr + (offset << XSK_UNALIGNED_BUF_OFFSET_SHIFT); in xp_get_handle()154 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp); in __xsk_rcv_zc() local158 addr = xp_get_handle(xskb); in __xsk_rcv_zc()[all …]