sdm660-common: TetheringOverlay: Disable BPF offload

The new trafficController design is based on per-cgroup eBPF filter as well as xt_bpf netfilter module inside the kernel.
However, support for per-cgroup eBPF is available on only on kernels >=4.9 . Disable BPF offloading support completely
as without proper per-cgroup eBPF, the stats returns errors continuously.

E TetherController: Error processing tether stats from BPF maps: Get firstKey map -1 failed: Bad file descriptor

Ref:
[0]: https://source.android.com/devices/tech/datausage/ebpf-traffic-monitor
[1]: 4e0a5f13fc/server/TetherController.cpp (L1047)

Change-Id: Ic7db658130f42fc0737bfb52aef7235c6fea0db2
This commit is contained in:
LuK1337 2020-10-19 21:42:02 +02:00 committed by OdSazib
parent 9614c2d4c9
commit 8062c98553
No known key found for this signature in database
GPG key ID: 0954440B60470871

View file

@ -19,6 +19,12 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Use the BPF offload for tethering when the kernel has support. True by default.
If the device doesn't want to support tether BPF offload, this should be false.
Note that this setting could be overridden by device config.
-->
<bool translatable="false" name="config_tether_enable_bpf_offload">false</bool>
<!-- List of regexpressions describing the interface (if any) that represent tetherable <!-- List of regexpressions describing the interface (if any) that represent tetherable
USB interfaces. If the device doesn't want to support tething over USB this should USB interfaces. If the device doesn't want to support tething over USB this should
be empty. An example would be "usb.*" --> be empty. An example would be "usb.*" -->