ipacm: Add correct ihl_offset eq bitmap on MTU rules HW < IPA3.0
Change the MTU rule to use the correct equation bitmap
to specify ihl_offset_range16 on IPA version older than 3.0
Change-Id: I615534cf76d673ef929ca415b2b905d5119100f8
diff --git a/ipacm/src/IPACM_Lan.cpp b/ipacm/src/IPACM_Lan.cpp
index 0a532fd..3a27cdc 100644
--- a/ipacm/src/IPACM_Lan.cpp
+++ b/ipacm/src/IPACM_Lan.cpp
@@ -6467,6 +6467,7 @@
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));
@@ -6490,7 +6491,10 @@
&flt_eq.eq_attrib, sizeof(rule->eq_attrib));
//add IHL offsets
- rule->eq_attrib.rule_eq_bitmap |= (1<<10);
+ if (IPACM_Iface::ipacmcfg->isIPAv3Supported())
+ rule->eq_attrib.rule_eq_bitmap |= (1<<10);
+ else
+ rule->eq_attrib.rule_eq_bitmap |= (1<<4);
rule->eq_attrib.num_ihl_offset_range_16 = 1;
if (iptype == IPA_IP_v4)
rule->eq_attrib.ihl_offset_range_16[0].offset = 0x82;