Skip to content
Commit 1158f79f authored by David Ahern's avatar David Ahern Committed by Paolo Abeni
Browse files

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: 1d3fd8a1 ("vrf: Use orig netdev to count Ip6InNoRoutes and a fresh route lookup when sending dest unreach")
Reported-by: default avatarPudak, Filip <Filip.Pudak@windriver.com>
Reported-by: default avatarXiao, Jiguang <Jiguang.Xiao@windriver.com>
Signed-off-by: default avatarDavid Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220404150908.2937-1-dsahern@kernel.org


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 61fb3eee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment