Rename dscp_policy.o to dscpPolicy.o
Underscore character may cause bpf prog/map naming collision. For example, x.o with map y_z and x_y.o with map z both result in x_y_z prog/map name, which should be prevented during compile-time. aosp/2147825 will prohibit underscore character in bpf source name (source name derives the obj name). Existing bpf modules with underscore characters in source name need to be updated accordingly. Bug: 236706995 Test: atest bpf_existence_test Test: adb root; adb shell ls -l sys/fs/bpf/net_shared | grep dscpPolicy Change-Id: Ibe98944d09d42bd11b78b5e9ae35ded48c70416d
This commit is contained in:
@@ -87,13 +87,13 @@ static const set<string> MAINLINE_FOR_T_PLUS = {
|
||||
SHARED "map_block_blocked_ports_map",
|
||||
SHARED "map_clatd_clat_egress4_map",
|
||||
SHARED "map_clatd_clat_ingress6_map",
|
||||
SHARED "map_dscp_policy_ipv4_dscp_policies_map",
|
||||
SHARED "map_dscp_policy_ipv4_socket_to_policies_map_A",
|
||||
SHARED "map_dscp_policy_ipv4_socket_to_policies_map_B",
|
||||
SHARED "map_dscp_policy_ipv6_dscp_policies_map",
|
||||
SHARED "map_dscp_policy_ipv6_socket_to_policies_map_A",
|
||||
SHARED "map_dscp_policy_ipv6_socket_to_policies_map_B",
|
||||
SHARED "map_dscp_policy_switch_comp_map",
|
||||
SHARED "map_dscpPolicy_ipv4_dscp_policies_map",
|
||||
SHARED "map_dscpPolicy_ipv4_socket_to_policies_map_A",
|
||||
SHARED "map_dscpPolicy_ipv4_socket_to_policies_map_B",
|
||||
SHARED "map_dscpPolicy_ipv6_dscp_policies_map",
|
||||
SHARED "map_dscpPolicy_ipv6_socket_to_policies_map_A",
|
||||
SHARED "map_dscpPolicy_ipv6_socket_to_policies_map_B",
|
||||
SHARED "map_dscpPolicy_switch_comp_map",
|
||||
NETD "map_netd_app_uid_stats_map",
|
||||
NETD "map_netd_configuration_map",
|
||||
NETD "map_netd_cookie_tag_map",
|
||||
@@ -126,8 +126,8 @@ static const set<string> MAINLINE_FOR_T_5_4_PLUS = {
|
||||
|
||||
// Provided by *current* mainline module for T+ devices with 5.15+ kernels
|
||||
static const set<string> MAINLINE_FOR_T_5_15_PLUS = {
|
||||
SHARED "prog_dscp_policy_schedcls_set_dscp_ether",
|
||||
SHARED "prog_dscp_policy_schedcls_set_dscp_raw_ip",
|
||||
SHARED "prog_dscpPolicy_schedcls_set_dscp_ether",
|
||||
SHARED "prog_dscpPolicy_schedcls_set_dscp_raw_ip",
|
||||
};
|
||||
|
||||
void addAll(set<string>* a, const set<string>& b) {
|
||||
|
||||
Reference in New Issue
Block a user