Stephen Suryaputra 0857d6f8c7 ipv6: When forwarding count rx stats on the orig netdev
Commit bdb7cc643fc9 ("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: bdb7cc643fc9 ("ipv6: Count interface receive statistics on the ingress netdev")
Signed-off-by: Stephen Suryaputra <ssuryaextr@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20211014130845.410602-1-ssuryaextr@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-10-15 15:32:04 -07:00
..
2021-06-11 14:48:50 +02:00
2019-07-27 14:23:48 -07:00
2021-07-27 20:11:44 +01:00
2021-07-27 20:11:44 +01:00
2021-08-05 13:27:50 +01:00
2021-06-11 14:48:50 +02:00
2021-06-29 11:28:21 -07:00
2021-04-29 15:34:15 -07:00
2021-07-27 20:11:44 +01:00
2020-12-16 11:01:04 -08:00