diff options
author | Ashok Vuyyuru <avuyyuru@codeaurora.org> | 2021-05-22 00:33:53 +0530 |
---|---|---|
committer | Ashok Vuyyuru <avuyyuru@codeaurora.org> | 2021-05-22 00:43:54 +0530 |
commit | 3fbde46dcb2168534f0d745a529a3286be19e4c6 (patch) | |
tree | ba9ecbc70e0beb351753948f89180abce1652403 /ipacm | |
parent | 34cc20762944c325819de775cb2cf02124277827 (diff) | |
download | ipacfg-mgr-3fbde46dcb2168534f0d745a529a3286be19e4c6.tar.gz |
ipacm: Adding changes to use right check while checking version support
Using defined flag support removed in latest branch. So adding changes
to use right check when using the version check.
Change-Id: Ia832ce763156e07fc5475e4de4d11522b2fe732c
Diffstat (limited to 'ipacm')
-rw-r--r-- | ipacm/src/IPACM_Lan.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipacm/src/IPACM_Lan.cpp b/ipacm/src/IPACM_Lan.cpp index c83a729..f70c58d 100644 --- a/ipacm/src/IPACM_Lan.cpp +++ b/ipacm/src/IPACM_Lan.cpp @@ -6632,11 +6632,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 -#ifdef FEATURE_IPA_V3 + if(IPACM_Iface::ipacmcfg->GetIPAVer() >= IPA_HW_v3_0) rule->eq_attrib.rule_eq_bitmap |= (1<<10); -#else + 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; |