diff --git a/net/core/filter.c b/net/core/filter.c index 571fca769ee9cc0c8c05b067791d89631cc4fece..453d9fd10cc22cfe27f2af08b153b619212fca3f 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -4373,7 +4373,7 @@ static int bpf_ipv6_fib_lookup(struct net *net, struct bpf_fib_lookup *params, return -ENODEV; idev = __in6_dev_get_safely(dev); - if (unlikely(!idev || !net->ipv6.devconf_all->forwarding)) + if (unlikely(!idev || !idev->cnf.forwarding)) return BPF_FIB_LKUP_RET_FWD_DISABLED; if (flags & BPF_FIB_LOOKUP_OUTPUT) {