On 12/04/2016 04:17 AM, Martin KaFai Lau wrote:
This patch allows XDP prog to extend/remove the packet
data at the head (like adding or removing header). It is
done by adding a new XDP helper bpf_xdp_adjust_head().
It also renames bpf_helper_changes_skb_data() to
bpf_helper_changes_pkt_data() to better reflect
that XDP prog does not work on skb.
Acked-by: Alexei Starovoitov <a...@kernel.org>
Signed-off-by: Martin KaFai Lau <ka...@fb.com>
Yeah, looks good like that:
Acked-by: Daniel Borkmann <dan...@iogearbox.net>
Should there one day be different requirements wrt min length,
we could always pass dev pointer via struct xdp_buff and then
use dev->hard_header_len, for example, but not needed right now.