aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/flow_dissector.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-01-28 10:29:15 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2019-01-29 00:27:38 +0100
commitd76198b0bc5a67c14c5209bac82481399a3387da (patch)
tree8fdf782d63e20ec1aa8036cd83ad77a7aabb97f5 /net/core/flow_dissector.c
parentselftests: bpf: remove duplicated include (diff)
downloadlinux-dev-d76198b0bc5a67c14c5209bac82481399a3387da.tar.xz
linux-dev-d76198b0bc5a67c14c5209bac82481399a3387da.zip
tools: bpftool: warn about risky prog array updates
When prog array is updated with bpftool users often refer to the map via the ID. Unfortunately, that's likely to lead to confusion because prog arrays get flushed when the last user reference is gone. If there is no other reference bpftool will create one, update successfully just to close the map again and have it flushed. Warn about this case in non-JSON mode. If the problem continues causing confusion we can remove the support for referring to a map by ID for prog array update completely. For now it seems like the potential inconvenience to users who know what they're doing outweighs the benefit. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'net/core/flow_dissector.c')
0 files changed, 0 insertions, 0 deletions