The tether bpf offload can be enabled by resource config and
device config. The device config has higher priority and it
could override this config which is set by resource config.
Bug: 149997301
Test: -build, flash, boot
-atest TetheringConfigurationTest
Original-Change: https://android-review.googlesource.com/1276007
Use device option to control BPF offload features
If BPF offload device config is not enabled:
- Does not add/remove offload forwarding rules through disabling IP
neighbor monitor.
- Does not apply the RA MTU reduction.
Bug: 149997301
Test: atest IpServerTest
Original-Change: https://android-review.googlesource.com/1284578
Merged-In: I2d6f80f0229f580c4b16243a064e889a6c37f77a
Change-Id: I2d6f80f0229f580c4b16243a064e889a6c37f77a
45 lines
2.5 KiB
XML
45 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2020 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<overlayable name="TetheringConfig">
|
|
<policy type="product|system|vendor">
|
|
<!-- Params from config.xml that can be overlaid -->
|
|
<item type="array" name="config_tether_usb_regexs"/>
|
|
<item type="array" name="config_tether_ncm_regexs" />
|
|
<item type="array" name="config_tether_wifi_regexs"/>
|
|
<item type="array" name="config_tether_wifi_p2p_regexs"/>
|
|
<item type="array" name="config_tether_bluetooth_regexs"/>
|
|
<item type="array" name="config_tether_dhcp_range"/>
|
|
<!-- 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 override by device config.
|
|
-->
|
|
<item type="bool" name="config_tether_enable_bpf_offload"/>
|
|
<item type="bool" name="config_tether_enable_legacy_dhcp_server"/>
|
|
<item type="integer" name="config_tether_offload_poll_interval"/>
|
|
<item type="array" name="config_tether_upstream_types"/>
|
|
<item type="bool" name="config_tether_upstream_automatic"/>
|
|
<!-- Configuration values for tethering entitlement check -->
|
|
<item type="array" name="config_mobile_hotspot_provision_app"/>
|
|
<item type="string" name="config_mobile_hotspot_provision_app_no_ui"/>
|
|
<item type="string" name="config_mobile_hotspot_provision_response"/>
|
|
<item type="integer" name="config_mobile_hotspot_provision_check_period"/>
|
|
<item type="string" name="config_wifi_tether_enable"/>
|
|
<!-- Params from config.xml that can be overlaid -->
|
|
</policy>
|
|
</overlayable>
|
|
</resources>
|