Commit 84105dbd authored by Maitreya29's avatar Maitreya29 Committed by arnavpuranik
Browse files

net: adapt bpf_xdp_copy

parent 8a23cd2d
......@@ -2455,9 +2455,9 @@ static const struct bpf_func_proto bpf_skb_under_cgroup_proto = {
};
static unsigned long bpf_xdp_copy(void *dst_buff, const void *src_buff,
unsigned long off, unsigned long len)
unsigned long len)
{
memcpy(dst_buff, src_buff + off, len);
memcpy(dst_buff, src_buff, len);
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment