bpf: Fix bpf_xdp_event_output
authorMartin KaFai Lau <kafai@fb.com>
Thu, 23 Feb 2017 18:40:34 +0000 (10:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2017 18:53:42 +0000 (13:53 -0500)
commit9c4713701c01e4cef6e2315c2818abc919ffb0de
tree39f6f0e7dbdf11ef676d4dd48cfaea23d0856382
parentccaba0621a8577ce6b84cf625f2b9a4c6466d999
bpf: Fix bpf_xdp_event_output

Fix a typo. xdp->data instead of xdp should be copied to the perf-event's
dst_buff.

Fixes: 4de16969523c ("bpf: enable event output helper also for xdp types")
Reported-by: Huapeng Zhou <hzhou@fb.com>
Tested-by: Feixiong Zhang <feixiong@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c