-
Notifications
You must be signed in to change notification settings - Fork 5
Print map ID on successful creation #6271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print map ID on successful creation #6271
Conversation
|
Upstream branch: ab01bfa |
|
Upstream branch: ab01bfa |
bbc41d5 to
9cc10b0
Compare
9a71dd4 to
e4f505a
Compare
|
Upstream branch: e6e10c5 |
9cc10b0 to
cb51403
Compare
e4f505a to
5119f01
Compare
|
Upstream branch: 5dae745 |
cb51403 to
8dbd83a
Compare
5119f01 to
fe98223
Compare
|
Upstream branch: 11369e6 |
It is useful to print map ID on successful creation.
JSON case:
$ ./bpftool -j map create /sys/fs/bpf/test_map4 type hash key 4 value 8 entries 128 name map4
{"id":12}
Generic case:
$ ./bpftool map create /sys/fs/bpf/test_map5 type hash key 4 value 8 entries 128 name map5
Map successfully created with ID: 15
Bpftool Issue: libbpf/bpftool#121
Acked-by: Yonghong Song <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Signed-off-by: Harshit Mogalapalli <[email protected]>
Add selftest to check if Map ID is printed on successful creation in both plain text and json formats. Signed-off-by: Harshit Mogalapalli <[email protected]> Reviewed-by: Quentin Monnet <[email protected]>
8dbd83a to
9b88de3
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1018566 expired. Closing PR. |
Pull request for series with
subject: Print map ID on successful creation
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1018566