]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Fix stats accounting in ip6_pkt_drop
authorDavid Ahern <dsahern@kernel.org>
Mon, 4 Apr 2022 15:09:08 +0000 (09:09 -0600)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Apr 2022 11:41:27 +0000 (13:41 +0200)
commit923060149361b9ad166a84f3ad1a67079af3418f
treecdce747165988550332f0f1b9dd55e9649c6db17
parent1fdde84f1ca5870b9542be0909f84572f184c4ac
ipv6: Fix stats accounting in ip6_pkt_drop

VRF devices are the loopbacks for VRFs, and a loopback can not be
assigned to a VRF. Accordingly, the condition in ip6_pkt_drop should
be '||' not '&&'.

Fixes: 931ba3037385 ("vrf: Use orig netdev to count Ip6InNoRoutes and a fresh route lookup when sending dest unreach")
Reported-by: Pudak, Filip <Filip.Pudak@windriver.com>
Reported-by: Xiao, Jiguang <Jiguang.Xiao@windriver.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220404150908.2937-1-dsahern@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv6/route.c