On 7/6/18 3:50 AM, Xin Long wrote:
>>> Try this:
>>>
>>> diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
>>> index b21833651394..e46cdd310e5f 100644
>>> --- a/net/ipv4/fib_frontend.c
>>> +++ b/net/ipv4/fib_frontend.c
>>> @@ -300,6 +300,7 @@ __be32 fib_compute_spec_dst(struct sk_buff *skb)
>>> if (!ipv4_is_zeronet(ip_hdr(skb)->saddr)) {
>>> struct flowi4 fl4 = {
>>> .flowi4_iif = LOOPBACK_IFINDEX,
>>> + .flowi4_oif = l3mdev_master_ifindex_rcu(dev),
>>> .daddr = ip_hdr(skb)->saddr,
>>> .flowi4_tos = RT_TOS(ip_hdr(skb)->tos),
>>> .flowi4_scope = scope,
> If this patch can be applied, I would be able to make a proper selftest like:
Forgot to send the patch yesterday. Will do so sometime this weekend.