From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A27D34404F; Wed, 12 Jun 2024 17:16:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EEBC42EC2; Wed, 12 Jun 2024 17:05:35 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id EB01B42E9A for ; Wed, 12 Jun 2024 17:05:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204725; x=1749740725; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Cwm1Clfrlc2/BqyzK9hX5b7uHh8eVJXVkgGOTTxP4DY=; b=d7jh9CvzV3DiVZyYpjNZxYZ327rdePAWKSSH8Rh65z/JeJIOtZWm6haA ylHP8RU8rW4pqd8RuDH8lbQSXwjltsyTsrpHnvKx5K8uewt/f+eqjFdDI bSVFIwpx2S09PygGEvdWFNMKMq9JnHSmtK6L2t5V3f5b5UfnZXrOgXVjV cfWpYH+2LJL+ux//L6cYcsrJr8ipvoUx3afWrDC5fyjrTW4Ud9hEm0sFl /UXge8c/s7ug06hZ2ugW1mDj+86eX8KVyivqCEkxe0SYA5qHKraApN8zM jD1RTRnas8X5RTMJkRLn8/8VDNFD+YXcc7hyue9so5Ff5X4uPRL6qgxrf w==; X-CSE-ConnectionGUID: EN3bbElMSFuagQu0FT1VLA== X-CSE-MsgGUID: MDvpWD4XSmCFTH2bqsptAw== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459667" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459667" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:05:25 -0700 X-CSE-ConnectionGUID: BlREiwIGSNKvuDjAoCD/8A== X-CSE-MsgGUID: KLhndh3TRkGjYr/6DjugPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925531" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:05:24 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Fabio Pricoco Subject: [PATCH v2 077/148] net/ice/base: use correct type Date: Wed, 12 Jun 2024 16:01:11 +0100 Message-ID: <9614ca6579540fdb051f7083605fe7df0ecd745e.1718204528.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Ian Stokes num_rules was defined u16 but it should be u8 as it is passed to function ice_aq_sw_rules which expects u8. Signed-off-by: Fabio Pricoco Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index e5930a5010..9ea302585c 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -9658,7 +9658,7 @@ ice_add_adv_rule(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups, struct ice_switch_info *sw; u16 nb_lg_acts_mark = 1; const u8 *pkt = NULL; - u16 num_rules = 1; + u8 num_rules = 1; bool prof_rule; u16 word_cnt; u32 act = 0; -- 2.43.0