android_packages_modules_Co.../tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej Żenczykowski 3cb494fd28 move BPF_CGROUP_INET*_BIND registration into BpfHandler
(in preparation for moving it into netbpfload)

The programs themselves (in bpf_progs/block.c) required a 5.4+ kernel.

We relax this restriction to 4.19+ as we don't have any 5.4 device coverage
(while the pixel 4a 5G / 5 / 5a are all 4.19 devices).

I believe we could relax it further to 4.14+ but Pixel 4/4xl/4a that
would exercise those code paths are EOL and probably have poor to
non existent test coverage, and we cannot do anything for 4.9 T devices
anyway.

Note: on <4.19 kernels (ie. T devices running 4.9/4.14, U running 4.14)
this results in ConnectivityNativeService going from null to initialized
(as the bpf map will exist).

This doesn't hurt as the set/clear port interfaces are only ever
called by vendor code on devices where the kernel doesn't support
the older mechanism.  And even if you call them it will just set/clear
the bits in the bpf bitmap, they just won't actually affect anything.

We could flag the map itself as being 4.19+ as well, but I think
I prefer the no-op map to exist...

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I1085addd22f4f3b709e1875049633832c5dac836
2023-10-06 14:31:20 -07:00
..
benchmark Address comments at aosp/2658225 2023-08-01 14:12:55 +08:00
common Merge "Add some tests back which were removed for fixing kotlin nullable errors" into main 2023-08-24 04:14:28 +00:00
cts Merge "Remove an NPE in tearDown" into main am: e7b7ceb70d 2023-10-05 03:07:15 +00:00
deflake DO NOT MERGE: Disable FrameworksNetTests 2021-10-04 18:59:14 +08:00
integration Add PACKAGE_USAGE_STATS permission to ConnectivityServiceIntegrationTest 2023-10-05 12:23:20 +09:00
mts move BPF_CGROUP_INET*_BIND registration into BpfHandler 2023-10-06 14:31:20 -07:00
native Move OWNER reference master=>main. 2023-07-18 17:12:49 +00:00
smoketest Workaround prebuilt name conflict for service-connectivity 2022-05-26 09:37:05 +00:00
unit Merge "Store transaction id in MdnsPacket" into main 2023-10-06 05:51:33 +00:00