acl-plugin: defer the ACL plugin user module registration with ACL lookup until it...
[vpp.git] / src / vnet / policer / xlate.c
index 74a6eb2..af8bc5a 100644 (file)
@@ -1172,7 +1172,6 @@ sse2_pol_logical_2_physical (sse2_qos_pol_cfg_params_st * cfg,
                             policer_read_response_type_st * phys)
 {
   int rc;
-  sse2_qos_pol_hw_params_st pol_hw;
   sse2_qos_pol_cfg_params_st kbps_cfg;
 
   memset (phys, 0, sizeof (policer_read_response_type_st));
@@ -1270,9 +1269,6 @@ sse2_pol_logical_2_physical (sse2_qos_pol_cfg_params_st * cfg,
       phys->extended_bucket = cfg->extended_bucket;
     }
 
-  // Touch to avoid compiler warning for X86
-  pol_hw.allow_negative = pol_hw.allow_negative;
-
 #endif // if !defined (INTERNAL_SS) && !defined (X86)
 
   return 0;
@@ -1316,7 +1312,7 @@ sse2_pol_convert_hw_to_cfg_params (sse2_qos_pol_hw_params_st * hw,
     }
 
   if ((hw->rfc == IPE_RFC_RFC4115) &&
-      !(hw->peak_rate_man << hw->rate_exp) && !(hw->extd_bkt_limit_man))
+      (hw->peak_rate_man << hw->rate_exp) == 0 && !(hw->extd_bkt_limit_man))
     {
       /*
        * For a 1R2C, we set EIR = 0, EB = 0