android_packages_modules_Co.../Tethering/apishim
Hungming Chen 3feb782282 bpf: Add interface index to BPF devmap
Add upstream and downstream interface index to BPF map and rename the
BPF map name from xdp_devmap to dev.

$ adb shell dumpsys tethering
    Device map:
      ifindex (iface) -> ifindex (iface)
        21 (21) -> 21 (21)
        25 (25) -> 25 (25)
        12 (rmnet_data2) -> 12 (rmnet_data2)

$ adb shell ip addr
12: rmnet_data2 ..
21: wlan1 ..
25: rndis0 ..

$ adb shell ls /sys/fs/bpf/tethering
map_offload_tether_dev_map

Test: atest TetheringCoverageTests

Change-Id: Ic49965f3374d9e196ee672ec2f0e9e08f3847deb
2021-05-12 19:57:18 +08:00
..
30/com/android/networkstack/tethering/apishim/api30 bpf: Add interface index to BPF devmap 2021-05-12 19:57:18 +08:00
31/com/android/networkstack/tethering/apishim/api31 bpf: Add interface index to BPF devmap 2021-05-12 19:57:18 +08:00
common/com/android/networkstack/tethering/apishim/common bpf: Add interface index to BPF devmap 2021-05-12 19:57:18 +08:00