samples: bpf: get ifindex from ifname
authorMatteo Croce <mcroce@redhat.com>
Sat, 1 Dec 2018 00:23:06 +0000 (01:23 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 1 Dec 2018 06:06:41 +0000 (22:06 -0800)
commitdc378a1ab5b6009629a3f8410f8b3030ac6b14c9
treecdd8e745aba4dd3f7eeb1c8d4c6630e2deb4f56a
parentd606ee5c1d9a9bc4d1bba3c36fae615447f9851c
samples: bpf: get ifindex from ifname

Find the ifindex with if_nametoindex() instead of requiring the
numeric ifindex.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/xdp1_user.c