From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E0397A04DD; Tue, 20 Oct 2020 11:13:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3A86D5A66; Tue, 20 Oct 2020 10:55:12 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id EEC275A66 for ; Tue, 20 Oct 2020 10:55:09 +0200 (CEST) IronPort-SDR: pkf0ROXMArPZRkZPn/i/oC07mRTHA4OUIfSkrj4+WjygU+MVAV1AIxknqGLvcPbLEcOitElPNx KbLaLMn2vjnw== X-IronPort-AV: E=McAfee;i="6000,8403,9779"; a="146470921" X-IronPort-AV: E=Sophos;i="5.77,396,1596524400"; d="scan'208";a="146470921" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 01:55:08 -0700 IronPort-SDR: SVpCmwC28h+zA3jMqdyIUAT67ZPAMps04hA+KuB25hEQ/NlsuBY0JX8BSWZ/Jo09ZjaqDmCx1A jqPuY3Vp49pw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,396,1596524400"; d="scan'208";a="523431932" Received: from unknown (HELO npg-dpdk-cvl-simeisu-118d193.sh.intel.com) ([10.67.119.195]) by fmsmga005.fm.intel.com with ESMTP; 20 Oct 2020 01:55:06 -0700 From: Simei Su To: qi.z.zhang@intel.com, qiming.yang@intel.com Cc: dev@dpdk.org, bruce.w.allan@intel.com, Simei Su Date: Tue, 20 Oct 2020 16:46:39 +0800 Message-Id: <20201020084639.335468-1-simei.su@intel.com> X-Mailer: git-send-email 2.9.5 Subject: [dpdk-dev] [PATCH] net/ice/base: fix a refactor error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch corrects an upper limit value in for loop. Fixes: dd4a3cef556a ("net/ice/base: introduce and use bitmap set API") Signed-off-by: Simei Su --- drivers/net/ice/base/ice_bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_bitops.h b/drivers/net/ice/base/ice_bitops.h index f954a74..3954896 100644 --- a/drivers/net/ice/base/ice_bitops.h +++ b/drivers/net/ice/base/ice_bitops.h @@ -395,7 +395,7 @@ ice_bitmap_set(ice_bitmap_t *dst, u16 pos, u16 num_bits) { u16 i; - for (i = pos; i < num_bits; i++) + for (i = pos; i < pos + num_bits; i++) ice_set_bit(i, dst); } -- 2.9.5