On 31/03/2018 3:05 PM, Jesper Dangaard Brouer wrote:
..
@@ -844,6 +851,15 @@ static inline int mlx5e_xdp_handle(struct mlx5e_rq *rq,
if (unlikely(!mlx5e_xmit_xdp_frame(rq, di, )))
trace_xdp_exception(rq->netdev, prog, act);
return true;
From: Jesper Dangaard Brouer
Date: Sat, 31 Mar 2018 14:05:52 +0200
> +static inline void mlx5e_page_dma_unmap(struct mlx5e_rq *rq,
> + struct mlx5e_dma_info *dma_info)
Please do not use the inline keyword in foo.c files, let the compiler
This implements basic XDP redirect support in mlx5 driver.
Notice that the ndo_xdp_xmit() is NOT implemented, because that API
need some changes that this patchset is working towards.
The main purpose of this patch is have different drivers doing
XDP_REDIRECT to show how different memory models