Re: [PATCH v2 net] ipv6: fix src addr routing with the exception table

2019-05-16 Thread Wei Wang
On Thu, May 16, 2019 at 12:15 PM Martin Lau wrote: > > On Thu, May 16, 2019 at 11:16:20AM -0700, Wei Wang wrote: > > From: Wei Wang > > > > When inserting route cache into the exception table, the key is > > generated with both src_addr and dest_addr with src addr routing. > > However, current lo

Re: [PATCH v2 net] ipv6: fix src addr routing with the exception table

2019-05-16 Thread Martin Lau
On Thu, May 16, 2019 at 11:16:20AM -0700, Wei Wang wrote: > From: Wei Wang > > When inserting route cache into the exception table, the key is > generated with both src_addr and dest_addr with src addr routing. > However, current logic always assumes the src_addr used to generate the > key is a /

[PATCH v2 net] ipv6: fix src addr routing with the exception table

2019-05-16 Thread Wei Wang
From: Wei Wang When inserting route cache into the exception table, the key is generated with both src_addr and dest_addr with src addr routing. However, current logic always assumes the src_addr used to generate the key is a /128 host address. This is not true in the following scenarios: 1. When