commit | 219f328b7c2f99ef27f89206bdbf1260fa7ad2e4 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Fri Feb 10 10:02:49 2017 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue Feb 14 17:32:34 2017 +0900 |
tree | 1b9705c3958736cda50f35810eb3e9d570649c67 | |
parent | 0b733e4407db9d198b75743727c5827daa65490e [diff] |
Use netlink code to flush rules. This removes two calls to /sbin/ip on netd startup, which saves about 70ms. In the future we will be able to use this to flush routes as well, which will provide similar time savings on every network destroy operation. Bug: 34873832 Test: bullhead builds, boots Test: rules flushed correctly when netd is killed Change-Id: I4875ac7fec1a92dc5fa2cb68f8fab2a903348c20