bpftool: print program device bound info
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 3 Nov 2017 20:56:19 +0000 (13:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 13:26:19 +0000 (22:26 +0900)
commit5b2aee823a3e64ceac3ab705b491a8164028d6a9
tree68e81ea982fa01410347eb397d94646a9f7f2942
parent18f7105158e5cf2ce4d567f4b804c76d098b4f6f
bpftool: print program device bound info

If program is bound to a device, print the name of the relevant
interface or unknown if the netdev has since been removed.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/bpf/bpftool/prog.c
tools/include/uapi/linux/bpf.h