commit | c3bfd3eeb7f9b3f42078f018603c161092c5d4e7 | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Tue Apr 24 11:50:02 2018 -0700 |
committer | Chenbo Feng <fengc@google.com> | Wed May 16 12:31:08 2018 -0700 |
tree | 1f430335f518f30368d392b25656adb2cf3ef8d3 | |
parent | 6bd8ae800a03907224ddbac02dca340bd6032cd1 [diff] |
Use bpf get first key to iterate the maps With the newest kernel support from upstream. We can directly get the first key of each map with a null pointer instead of using a nonexistent key for each map. This patch replaced all related iteration process with this new function and cleaned up all unecessary code. Bug: 30950746 Test: ./libbpfTest ./netd_unit_test Change-Id: Ie1fd617964d37d2a1c12b2f34457c1cc1d912571