From patchwork Wed Jul 7 09:51:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xu, Ting" X-Patchwork-Id: 95477 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EF02CA0C4A; Wed, 7 Jul 2021 11:48:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC684406FF; Wed, 7 Jul 2021 11:48:44 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 6F323406B4; Wed, 7 Jul 2021 11:48:42 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10037"; a="273117307" X-IronPort-AV: E=Sophos;i="5.83,331,1616482800"; d="scan'208";a="273117307" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2021 02:48:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,331,1616482800"; d="scan'208";a="486751889" Received: from dpdk-xuting-second.sh.intel.com ([10.67.116.193]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jul 2021 02:48:37 -0700 From: Ting Xu To: dev@dpdk.org Cc: qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com, thomas@monjalon.net, Ting Xu , stable@dpdk.org Date: Wed, 7 Jul 2021 17:51:10 +0800 Message-Id: <20210707095110.1508-1-ting.xu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] net/ice: fix unmatched integer type X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 fixed the unmatched interger type issue in the comparison, which causing compilation failure on RHEL. Fixes: 3a6bfc37eaf4 ("net/ice: support QoS config VF bandwidth in DCF") Cc: stable@dpdk.org Signed-off-by: Ting Xu Tested-by: Ali Alnubani --- drivers/net/ice/ice_dcf_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_dcf_sched.c b/drivers/net/ice/ice_dcf_sched.c index 4371bbc820..aeb1afbe85 100644 --- a/drivers/net/ice/ice_dcf_sched.c +++ b/drivers/net/ice/ice_dcf_sched.c @@ -350,7 +350,7 @@ ice_dcf_node_add(struct rte_eth_dev *dev, uint32_t node_id, return -EINVAL; } /* check the vsi node id */ - if (node_id > tc_nb * hw->num_vfs) { + if (node_id > (uint32_t)(tc_nb * hw->num_vfs)) { error->type = RTE_TM_ERROR_TYPE_NODE_ID; error->message = "too large VSI id"; return -EINVAL;