diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2020-03-18 19:04:14 +0200 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-03-18 19:04:14 +0200 |
commit | 58f731cb1ba1c84ba5f241f73f0853d1c1d09e8a (patch) | |
tree | 49b24caf8ad1afb2979004efb4b6be2ba4d6d967 /ipacm/src/IPACM_Lan.cpp | |
parent | 109aa1e7c66501568cc685c1ad92342e3b1398c3 (diff) | |
parent | 34180a4f5db2746e99b3aa1dec3b9518c6877335 (diff) | |
download | android_vendor_qcom_opensource_data-ipa-cfg-mgr-lineage-17.1.tar.gz android_vendor_qcom_opensource_data-ipa-cfg-mgr-lineage-17.1.tar.bz2 android_vendor_qcom_opensource_data-ipa-cfg-mgr-lineage-17.1.zip |
Merge tag 'LA.UM.8.1.r1-14500-sm8150.0' of https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/data-ipa-cfg-mgr into lineage-17.1HEADlineage-17.1
"LA.UM.8.1.r1-14500-sm8150.0"
Change-Id: I5069878624b0329212960e53d328143e6dd5c4b0
Diffstat (limited to 'ipacm/src/IPACM_Lan.cpp')
-rw-r--r-- | ipacm/src/IPACM_Lan.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ipacm/src/IPACM_Lan.cpp b/ipacm/src/IPACM_Lan.cpp index ebaca87..7628f79 100644 --- a/ipacm/src/IPACM_Lan.cpp +++ b/ipacm/src/IPACM_Lan.cpp @@ -6457,6 +6457,7 @@ int IPACM_Lan::construct_mtu_rule(struct ipa_flt_rule *rule, ipa_ip_type iptype, rule->eq_attrib_type = 1; rule->eq_attrib.rule_eq_bitmap = 0; rule->action = IPA_PASS_TO_EXCEPTION; + rule->rt_tbl_hdl = -1; /* generate eq */ memset(&flt_eq, 0, sizeof(flt_eq)); @@ -6480,7 +6481,11 @@ int IPACM_Lan::construct_mtu_rule(struct ipa_flt_rule *rule, ipa_ip_type iptype, &flt_eq.eq_attrib, sizeof(rule->eq_attrib)); //add IHL offsets - rule->eq_attrib.rule_eq_bitmap |= (1<<10); +#ifdef FEATURE_IPA_V3 + rule->eq_attrib.rule_eq_bitmap |= (1<<10); +#else + rule->eq_attrib.rule_eq_bitmap |= (1<<4); +#endif rule->eq_attrib.num_ihl_offset_range_16 = 1; if (iptype == IPA_IP_v4) rule->eq_attrib.ihl_offset_range_16[0].offset = 0x82; |