Require devices launching with Q to support dynamic partitions.
Also, remove from recommended list.
Bug: 124527106
Test: builds
Change-Id: I8fbf9a671e0b58eacadbb02d204ab5935061a73d
Q userspace will use eBPF for bandwidth measurement
and does not require QTAGUID netfilter extension.
As such we are okay with either QTAGUID or the less
functional but sufficient OWNER extension (provided
the requisite eBPF config options are also enabled).
ie. we require either XT_MATCH_QTAGUID or XT_MATCH_OWNER.
Furthermore XT_MATCH_OWNER also requires:
CONFIG_BPF_SYSCALL=y
CONFIG_CGROUP_BPF=y
CONFIG_NETFILTER_XT_MATCH_BPF=y
CONFIG_NET_CLS_BPF=y
(the first 3 of which are already base requirements on P 4.9+)
Note: while this change is complex, it *widens* the
set of valid kernel configurations. Any kernel that passed
configuration requirements before this change will also pass
them after this change. However additionally this allows a
Q kernel to pass on a shipped as P but then upgraded to Q
device.
Also note that as Alistair points out this doesn't work for
shipped as O then upgraded to Q devices, as:
system/bpf/libbpf_android/BpfUtils.cpp
is still checking "first_api_level" for P, and thus will not
use eBPF and thus it would actually break without QTAGUID.
Bug: 125362907
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ia6ce9e857d260cc6c74dd59731555479f7d38078
I've received multiple requests to enable the use of the 'netem'
packet scheduling qdisc. I've also wanted to use it myself.
The amount of code is trivial (~1000 lines of code), but it enables
some pretty useful functionality - although mostly for debugging,
troubleshooting and testing.
One can use netem to introduce delays or packet loss and in general
reproduce a lower quality network.
Now that we've fixed iproute2 to enable support for more qdiscs,
it makes sense to also enable support for it in the kernel.
Bug: 124467469
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I0169514a997a77d044209a5b017d5f306fb3308e
Required for overlayfs integration support for adb remount
command. A requirement for any device that supports a
readonly filesystem, which includes erofs, squashfs, ext4 dedupe,
or right sized (zero space remaining) for any filesystem type
selected for the system images.
Required for vendor overlays.
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Test: adb-remount-test.sh
Bug: 109821005
Change-Id: I3ece03886db7cc97f864497cf93ec6c6c39bccd1
Once xt_qtaguid module is deprecated, the netd strictController which
uses owner match to filter egress traffic will not work because
xt_qtaguid masquerades as (and implements/extends) the "owner" module on
android devices. It can be resolved by turning upstream xt_owner module
back on since strictController only targets egress traffic and the
upstream xt_owner module works fine in this case.
Signed-off-by: Chenbo Feng <fengc@google.com>
Bug: 79938294
Test: manual cherry-pick and compile
Change-Id: I7247eb92827ed0db091ff8e954f7445e65f18606
The VTS test that verifies the kernel configuration has changed. Update
the documentation to reflect this.
Change-Id: Ibc9a5e3a5046953bbccb55e3456efd9c1dc48bff
Signed-off-by: Steve Muckle <smuckle@google.com>
Required for bpf qdisc for packet mangling.
Bug: 65674744
Change-Id: Ibec7de64ddf71ef865e83ca86df0254c8fe3a7db
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Add a script which can be used to verify that the non-conditional
config fragments are consistent, i.e. none of them disappear when
merged into an an allnoconfig.
Change-Id: I390823ead7ca5540f969a73e641855b8d9f55008
Signed-off-by: Steve Muckle <smuckle@google.com>
If pass -S option in python binaries wrapper, kconfig_xml_fixup
will meet below error (NameError: name 'exit' is not defined).
Bug:122343420
Test: 1. full build.
2. m kconfig_xml_fixup
out/soong/host/linux-x86/bin/kconfig_xml_fixup
--input kernel/configs/android-4.14/android-base-conditional.xml
--output-version
out/soong/.intermediates/kernel/configs/android-4.14/kernel_config_current_4.14/gen/version.txt
--output-matrix
out/soong/.intermediates/kernel/configs/android-4.14/kernel_config_current_4.14/gen/conditional.xml
Change-Id: I1fef27321c1051a7a6e9e809328c0695f83cfced