Skip to content
Commit 0857d6f8 authored by Stephen Suryaputra's avatar Stephen Suryaputra Committed by Jakub Kicinski
Browse files

ipv6: When forwarding count rx stats on the orig netdev

Commit bdb7cc64 ("ipv6: Count interface receive statistics on the
ingress netdev") does not work when ip6_forward() executes on the skbs
with vrf-enslaved netdev. Use IP6CB(skb)->iif to get to the right one.

Add a selftest script to verify.

Fixes: bdb7cc64

 ("ipv6: Count interface receive statistics on the ingress netdev")
Signed-off-by: default avatarStephen Suryaputra <ssuryaextr@gmail.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20211014130845.410602-1-ssuryaextr@gmail.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4884ddba
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