Lines Matching refs:xdp

53 	return pool->heads[0].xdp.rxq->napi_id;
73 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp)
75 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
80 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp)
82 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
98 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)
100 return xp_alloc_batch(pool, xdp, max);
108 static inline void xsk_buff_free(struct xdp_buff *xdp)
110 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
114 if (likely(!xdp_buff_has_frags(xdp)))
122 xdp_get_shared_info_from_buff(xdp)->nr_frags = 0;
127 static inline void xsk_buff_add_frag(struct xdp_buff *xdp)
129 struct xdp_buff_xsk *frag = container_of(xdp, struct xdp_buff_xsk, xdp);
136 struct xdp_buff_xsk *xskb = container_of(first, struct xdp_buff_xsk, xdp);
144 ret = &frag->xdp;
152 struct xdp_buff_xsk *xskb = container_of(tail, struct xdp_buff_xsk, xdp);
159 struct xdp_buff_xsk *xskb = container_of(first, struct xdp_buff_xsk, xdp);
164 return &frag->xdp;
167 static inline void xsk_buff_set_size(struct xdp_buff *xdp, u32 size)
169 xdp->data = xdp->data_hard_start + XDP_PACKET_HEADROOM;
170 xdp->data_meta = xdp->data;
171 xdp->data_end = xdp->data + size;
172 xdp->flags = 0;
186 static inline void xsk_buff_dma_sync_for_cpu(struct xdp_buff *xdp, struct xsk_buff_pool *pool)
188 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp);
287 static inline dma_addr_t xsk_buff_xdp_get_dma(struct xdp_buff *xdp)
292 static inline dma_addr_t xsk_buff_xdp_get_frame_dma(struct xdp_buff *xdp)
307 static inline u32 xsk_buff_alloc_batch(struct xsk_buff_pool *pool, struct xdp_buff **xdp, u32 max)
317 static inline void xsk_buff_free(struct xdp_buff *xdp)
321 static inline void xsk_buff_add_frag(struct xdp_buff *xdp)
339 static inline void xsk_buff_set_size(struct xdp_buff *xdp, u32 size)
354 static inline void xsk_buff_dma_sync_for_cpu(struct xdp_buff *xdp, struct xsk_buff_pool *pool)