diff options
| author | Stanislav Fomichev <[email protected]> | 2019-01-16 11:09:59 -0800 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-01-17 10:30:30 +0100 |
| commit | 7d7209cb9afdfc3dfcdc1b45013e62afb1ad71b6 (patch) | |
| tree | 3f28024a1cb06d94073025680adc44c854d5c41d /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | e13279e21183667e5462546ffbfeab2764be631b (diff) | |
bpftool: make key and value optional in update command
Bpftool expects both key and value for 'update' operations. For some
map types, key should not be specified. Support updating those map types.
Before:
bpftool map create /sys/fs/bpf/q type queue value 4 entries 10 name q
bpftool map update pinned /sys/fs/bpf/q value 0 1 2 3
Error: did not find key
After:
bpftool map create /sys/fs/bpf/q type queue value 4 entries 10 name q
bpftool map update pinned /sys/fs/bpf/q value 0 1 2 3
Signed-off-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions