commit | be6e19818ba626eb1b354490aee40a2cfc1a219f | [log] [tgz] |
---|---|---|
author | Jakub Sitnicki <jakub@cloudflare.com> | Sun May 31 10:28:41 2020 +0200 |
committer | Alexei Starovoitov <ast@kernel.org> | Mon Jun 01 15:21:03 2020 -0700 |
tree | dd45dc2eeff5cc6fd1893064d7f46f39413a9018 | |
parent | d60d81acc2c180e33244857e35ef60072573b000 [diff] |
bpftool: Extract helpers for showing link attach type Code for printing link attach_type is duplicated in a couple of places, and likely will be duplicated for future link types as well. Create helpers to prevent duplication. Suggested-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200531082846.2117903-8-jakub@cloudflare.com