summaryrefslogtreecommitdiff
path: root/server/NetworkController.cpp
diff options
context:
space:
mode:
authorChenbo Feng <fengc@google.com>2018-04-26 10:37:55 -0700
committerChenbo Feng <fengc@google.com>2018-05-29 20:15:36 -0700
commit4f6c237759e8bdc3ace937ad0eaaf9be893702da (patch)
tree879ef9b7a8959b884a02a8787845bd63023828d1 /server/NetworkController.cpp
parent4961637a73fdf36b613114398b466257928f28bd (diff)
refactor bpf maps into class
Use a class object to wrap up the bpf map file descriptor and provide some base function to look up, write and delete the map content. The map class also have a nested iterator class to iterate over the map and two helper function to simplify the iterating process. Removed the mDeleteStatsMutex since it cannot prevent framework side to read the stats while we are deleting the stats and all the other netd operation on the stats related map doesn't need to iterate through the map anyway. Bug: 78250686 Test: netd_unit_test libbpf_test Change-Id: I358ba65f7022fd03f8ca573550055734052b6fd2
Diffstat (limited to 'server/NetworkController.cpp')
0 files changed, 0 insertions, 0 deletions