CHROMIUM: mesh: path selection stability enhancement

Apply a more strict rule for next-hop update to increase stability.
This change aligns the path selection policy with that of Gale.
The following rules are added:
1. Always update if the next-hop stays the same.
2. The 10%-better rule is applied not only within the same SN, but
   also newer SN.

BUG=b:129904653
TEST=manually test on 3 mistral and mistral + vento + gale
Change-Id: I11a05fda4899b60d8266e361308eec9ad971e243
Signed-off-by: Roy Luo <royluo@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1598849
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Julan Hsu <julanhsu@google.com>
1 file changed