path: root/samples/bpf/xdp_sample_pkts_user.c
diff options
authorJiong Wang <jiong.wang@netronome.com>2018-06-26 19:48:52 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-06-27 10:57:15 +0200
commitcc0dff6dc3b44e33cd6b935893db66563ef15ba0 (patch)
tree86c9772fd43babab2377bbb7f66f486f7e4656f3 /samples/bpf/xdp_sample_pkts_user.c
parentb1a5046b2497e39cea9eb585358f3749442fb3f7 (diff)
nfp: bpf: allow source ptr type be map ptr in memcpy optimization
Map read has been supported on NFP, this patch enables optimization for memcpy from map to packet. This patch also fixed one latent bug which will cause copying from unexpected address once memcpy for map pointer enabled. The fixed code path was not exercised before. Reported-by: Mary Pham <mary.pham@netronome.com> Reported-by: David Beckett <david.beckett@netronome.com> Signed-off-by: Jiong Wang <jiong.wang@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/xdp_sample_pkts_user.c')
0 files changed, 0 insertions, 0 deletions