]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:19:56 +0000 (15:19 +0200)
commit385c95eedfde39c9b53394856d0d38424644bab0
tree9f9854c72be51f3d32ba0503419a8bcfd6861697
parent1ba9b6a702aaa3ab4e3cb21c7e15a45e7efb1abf
ipv6: Fix stats accounting in ip6_pkt_drop

BugLink: https://bugs.launchpad.net/bugs/1971497
[ Upstream commit 1158f79f82d437093aeed87d57df0548bdd68146 ]

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: 1d3fd8a10bed ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/ipv6/route.c