bpf: Change bpf_fib_lookup to return -EAFNOSUPPORT for unsupported address families
authorDavid Ahern <dsahern@gmail.com>
Wed, 30 May 2018 19:24:17 +0000 (12:24 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 30 May 2018 21:17:18 +0000 (14:17 -0700)
commitbcece5dc40b9e00d0a9a91fc0acc9a825c23362b
treecbcc2af28053ff6791db8086ce316de7c7dc971a
parent71b2c87df3ac37f5f83e166db136b0c1d065a781
bpf: Change bpf_fib_lookup to return -EAFNOSUPPORT for unsupported address families

Update bpf_fib_lookup to return -EAFNOSUPPORT for unsupported address
families. Allows userspace to probe for support as more are added
(e.g., AF_MPLS).

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/core/filter.c