[REGRESSION] net: SRv6 End.DT6 function is broken in VRF mode

From: Anton Makarov
Date: Fri Jun 03 2022 - 08:48:20 EST


#regzbot introduced: b9132c32e01976686efa26252cc246944a0d2cab

Hi All!

Seems there is a regression of SRv6 End.DT6 function in VRF mode. In the following scenario packet is decapsulated successfully on vrf10 interface but not forwarded to vrf10's slave interface:

ip netns exec r4 ip -6 nexthop add id 1004 encap seg6local action End.DT6 vrftable 10 dev vrf10

ip netns exec r4 ip -6 route add fcff:0:4:200:: nhid 1004


In End.DT6 legacy mode everything works good:

ip netns exec r4 ip -6 nexthop add id 1004 encap seg6local action End.DT6 table 10 dev vrf10

ip netns exec r4 ip -6 route add fcff:0:4:200:: nhid 1004


The issue impacts even stable v5.18.1. Please help to fix it.


Thanks!

Anton