samples/bpf: xdp_redirect_cpu_user: Do not update bpf maps in option loop
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 14 Jul 2020 13:56:36 +0000 (15:56 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 16 Jul 2020 15:00:31 +0000 (17:00 +0200)
commita4e76f1bda8e7b358dc21f0f925b8a2c4c98e733
tree5170106572cd3c8c610026a73d108321b76b0f0b
parentdaa5cdc3fd08407048538585b2433601d4089a82
samples/bpf: xdp_redirect_cpu_user: Do not update bpf maps in option loop

Do not update xdp_redirect_cpu maps running while option loop but
defer it after all available options have been parsed. This is a
preliminary patch to pass the program name we want to attach to the
map entries as a user option

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/95dc46286fd2c609042948e04bb7ae1f5b425538.1594734381.git.lorenzo@kernel.org
samples/bpf/xdp_redirect_cpu_user.c