commit | 7e97405ea17a9134bb1b63c41d1d32de003d6bbf | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Wed Feb 28 22:57:21 2018 -0800 |
committer | Chenbo Feng <fengc@google.com> | Tue Mar 13 20:27:27 2018 -0700 |
tree | 8f2ecf975144551c81578b1b49aab302c07d9a2c | |
parent | cf9e21191285c14fe4d5b873169c9a401a9721f4 [diff] |
Add a eBPF map to store iface name and index Since the kernel bpf program can only get the iface index instead of iface name, we need a seperate map to store the iface index and name pair in userspace so the kernel program can know what iface each received packet is and account against the correct name. Test: run cts -m TrafficStatsTest Bug: 30950746 Bug: 73137611 Change-Id: I6638dc4b03db6fd18b6b38b4524ec89e25a55bc0