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 82C0645500; Wed, 26 Jun 2024 13:59:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93DCA433B9; Wed, 26 Jun 2024 13:55:46 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 5B4A542E95 for ; Wed, 26 Jun 2024 13:44:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402246; x=1750938246; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3gotU/06g2fJcHSy6SRwO3CfF/D22tYDLjcAex7VIYs=; b=HsTQbn+ln8NHAv5H56Z4AAJrmgowRw4qRD02AJq599LGbPbtMOhJD+zi N9M33mxLqc5oLg8gkEM42o5prEbydYXIGTO7GnbJJRzXD/S+gmBGuxkrf XkC5hml4b59d8lE1o/nMosZclWbXZUfId+euuaxKz8FcNYNfrfWoE0Gng VsaDwfYUGq9CfJ6GYxAoPvWJNmf4l4VmjW+OfKYTmxaD7v6Zb8qJ9CzVP nbrfb8UxaT2q8GtNMwz0PodeSbnYNrzCYQSs94/Dxbe3TLDW3zP8lL+cj MTpEMTXxub5fY+RPyWWJ/F2y0kVu4E/b+MHe7XYKRCD4C9SFCelRNuxb4 w==; X-CSE-ConnectionGUID: odsVkDapTne3xAD4NcHgPA== X-CSE-MsgGUID: NdVSiY5VSM6ytBEoLJru8A== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979399" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979399" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:44:06 -0700 X-CSE-ConnectionGUID: ET1Fm7hTTJCXN3IwHBY7+g== X-CSE-MsgGUID: rxhN3i43ScWj8LWZQMDLDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43873846" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:44:05 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Fabio Pricoco , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 039/103] net/ice/base: use correct type Date: Wed, 26 Jun 2024 12:41:27 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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: Fabio Pricoco 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 b48f47c846..ac73630976 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -9420,7 +9420,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