]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c44187f5fabaeff1d82b7e9a916f9f1ed5d3ca3
treecdd8e745aba4dd3f7eeb1c8d4c6630e2deb4f56a
parent7910bc1f6418899da0efef16a3e054140c07ac25
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