Lines Matching refs:mxbuf
719 struct mlx4_en_xdp_buff mxbuf = {}; in mlx4_en_process_rx_cq() local
736 xdp_init_buff(&mxbuf.xdp, priv->frag_info[0].frag_stride, &ring->xdp_rxq); in mlx4_en_process_rx_cq()
831 xdp_prepare_buff(&mxbuf.xdp, va - frags[0].page_offset, in mlx4_en_process_rx_cq()
833 orig_data = mxbuf.xdp.data; in mlx4_en_process_rx_cq()
834 mxbuf.cqe = cqe; in mlx4_en_process_rx_cq()
835 mxbuf.mdev = priv->mdev; in mlx4_en_process_rx_cq()
836 mxbuf.ring = ring; in mlx4_en_process_rx_cq()
837 mxbuf.dev = dev; in mlx4_en_process_rx_cq()
839 act = bpf_prog_run_xdp(xdp_prog, &mxbuf.xdp); in mlx4_en_process_rx_cq()
841 length = mxbuf.xdp.data_end - mxbuf.xdp.data; in mlx4_en_process_rx_cq()
842 if (mxbuf.xdp.data != orig_data) { in mlx4_en_process_rx_cq()
843 frags[0].page_offset = mxbuf.xdp.data - in mlx4_en_process_rx_cq()
844 mxbuf.xdp.data_hard_start; in mlx4_en_process_rx_cq()
845 va = mxbuf.xdp.data; in mlx4_en_process_rx_cq()
852 if (likely(!xdp_do_redirect(dev, &mxbuf.xdp, xdp_prog))) { in mlx4_en_process_rx_cq()