diff options
author | Marco Varlese <marco.varlese@suse.com> | 2017-05-31 14:00:37 +0200 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2017-06-03 01:55:11 +0000 |
commit | 8c55b37a2220cc9dc2f16470b77059841d37aa46 (patch) | |
tree | db459851c558e32a15e2d53c2d92a4461ddfbd52 /src/vnet/policer | |
parent | 871cdec1b5fe5e0b0ccd70cf2e6fbedad0902c9f (diff) |
Fix for gcc7
When building VPP code with gcc7 a warning (threated as error) is encountered and the build fails.
This patch addressed the compilation issue.
Change-Id: I49af9288a84d91ec8145da07c00aefb5333ec418
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'src/vnet/policer')
-rw-r--r-- | src/vnet/policer/xlate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/policer/xlate.c b/src/vnet/policer/xlate.c index 74a6eb23d0a..b1c055ed27c 100644 --- a/src/vnet/policer/xlate.c +++ b/src/vnet/policer/xlate.c @@ -1316,7 +1316,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 |