Re: [PATCH net-next v2] net/mlx5e: Support bpf_xdp_adjust_head()

2017-01-18 Thread David Miller
From: Martin KaFai Lau Date: Tue, 17 Jan 2017 22:06:07 -0800 > This patch adds bpf_xdp_adjust_head() support to mlx5e. > > 1. rx_headroom is added to struct mlx5e_rq. It uses >an existing 4 byte hole in the struct. > 2. The adjusted data length is checked against >MLX5E_XDP_MIN_INLINE a

Re: [PATCH net-next v2] net/mlx5e: Support bpf_xdp_adjust_head()

2017-01-18 Thread Saeed Mahameed
On Wed, Jan 18, 2017 at 8:06 AM, Martin KaFai Lau wrote: > This patch adds bpf_xdp_adjust_head() support to mlx5e. > > 1. rx_headroom is added to struct mlx5e_rq. It uses >an existing 4 byte hole in the struct. > 2. The adjusted data length is checked against >MLX5E_XDP_MIN_INLINE and MLX

[PATCH net-next v2] net/mlx5e: Support bpf_xdp_adjust_head()

2017-01-17 Thread Martin KaFai Lau
This patch adds bpf_xdp_adjust_head() support to mlx5e. 1. rx_headroom is added to struct mlx5e_rq. It uses an existing 4 byte hole in the struct. 2. The adjusted data length is checked against MLX5E_XDP_MIN_INLINE and MLX5E_SW2HW_MTU(rq->netdev->mtu). 3. The macro MLX5E_SW2HW_MTU is moved