Home
last modified time | relevance | path

Searched refs:mxbuf (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_rx.c1657 struct mlx5e_xdp_buff *mxbuf) in mlx5e_fill_mxbuf() argument
1659 xdp_init_buff(&mxbuf->xdp, frame_sz, &rq->xdp_rxq); in mlx5e_fill_mxbuf()
1660 xdp_prepare_buff(&mxbuf->xdp, va, headroom, len, true); in mlx5e_fill_mxbuf()
1661 mxbuf->cqe = cqe; in mlx5e_fill_mxbuf()
1662 mxbuf->rq = rq; in mlx5e_fill_mxbuf()
1689 struct mlx5e_xdp_buff mxbuf; in mlx5e_skb_from_cqe_linear() local
1693 cqe_bcnt, &mxbuf); in mlx5e_skb_from_cqe_linear()
1694 if (mlx5e_xdp_handle(rq, prog, &mxbuf)) in mlx5e_skb_from_cqe_linear()
1697 rx_headroom = mxbuf.xdp.data - mxbuf.xdp.data_hard_start; in mlx5e_skb_from_cqe_linear()
1698 metasize = mxbuf.xdp.data - mxbuf.xdp.data_meta; in mlx5e_skb_from_cqe_linear()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_rx.c719 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()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dxdp.c312 struct bpf_prog *prog, struct mlx5e_xdp_buff *mxbuf) in mlx5e_xdp_handle() argument
314 struct xdp_buff *xdp = &mxbuf->xdp; in mlx5e_xdp_handle()