Lines Matching refs:xdp
144 struct xdp_buff *xdp) in ixgbe_run_xdp_zc() argument
155 act = bpf_prog_run_xdp(xdp_prog, xdp); in ixgbe_run_xdp_zc()
156 offset = xdp->data - xdp->data_hard_start; in ixgbe_run_xdp_zc()
158 xdp->handle = xsk_umem_adjust_offset(umem, xdp->handle, offset); in ixgbe_run_xdp_zc()
164 xdpf = convert_to_xdp_frame(xdp); in ixgbe_run_xdp_zc()
172 err = xdp_do_redirect(rx_ring->netdev, xdp, xdp_prog); in ixgbe_run_xdp_zc()
396 struct xdp_buff *xdp) in ixgbe_construct_skb_zc() argument
398 unsigned int metasize = xdp->data - xdp->data_meta; in ixgbe_construct_skb_zc()
399 unsigned int datasize = xdp->data_end - xdp->data; in ixgbe_construct_skb_zc()
404 xdp->data_end - xdp->data_hard_start, in ixgbe_construct_skb_zc()
409 skb_reserve(skb, xdp->data - xdp->data_hard_start); in ixgbe_construct_skb_zc()
410 memcpy(__skb_put(skb, datasize), xdp->data, datasize); in ixgbe_construct_skb_zc()
437 struct xdp_buff xdp; in ixgbe_clean_rx_irq_zc() local
439 xdp.rxq = &rx_ring->xdp_rxq; in ixgbe_clean_rx_irq_zc()
485 xdp.data = bi->addr; in ixgbe_clean_rx_irq_zc()
486 xdp.data_meta = xdp.data; in ixgbe_clean_rx_irq_zc()
487 xdp.data_hard_start = xdp.data - XDP_PACKET_HEADROOM; in ixgbe_clean_rx_irq_zc()
488 xdp.data_end = xdp.data + size; in ixgbe_clean_rx_irq_zc()
489 xdp.handle = bi->handle; in ixgbe_clean_rx_irq_zc()
491 xdp_res = ixgbe_run_xdp_zc(adapter, rx_ring, &xdp); in ixgbe_clean_rx_irq_zc()
510 skb = ixgbe_construct_skb_zc(rx_ring, bi, &xdp); in ixgbe_clean_rx_irq_zc()