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 466E2454EF; Tue, 25 Jun 2024 13:22:30 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3E1E42F4D; Tue, 25 Jun 2024 13:18:04 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 1C22940696 for ; Tue, 25 Jun 2024 13:16:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314214; x=1750850214; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nLMg+75HeFYy1vHVfXLCi2j35xvWTowhdXCxZ3iw5Eo=; b=Z+UXfKcRbxGspC+nRRrlBw8e4p6P/nCWhsWdAW0OSHrbOLod9/jHCWR/ hbEbeMO+I3jaFI8L+P0wn7PtsQTNDqpuQ3mDLlUyn/71lLrZeEaorfTCG c2Zw7dZLsew28hMn5raELeojFg1lvN2KP7XXQphw1p/rxaW+4dKAXuFeC Wrr5Eky9JlSDbjacGEE2K/WLPnNYrffkFPYsXhD7xM8nIlMfuxEeP1n6G nCTUcAwfFWKGsPwyJbkJqi4sSqNbGYbV9sIYqHqkyGE4TCCh0wEmE+qmc HMAvB0SvR62+ZOTWUdJFTZ161oc0TESJTKY3OYx5yu0fJc/nQiz4zKNPP g==; X-CSE-ConnectionGUID: 7MwVHYzMR4idMqCKmhQ4bg== X-CSE-MsgGUID: nJ+S0lfdRKausgjJOL7a9w== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080274" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080274" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:16:36 -0700 X-CSE-ConnectionGUID: E0kTOrURR4ebZOweqTMLUw== X-CSE-MsgGUID: y9s6mSlCRLqskkgOm2lGZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719260" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:16:36 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Fabio Pricoco , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 059/129] net/ice/base: use correct type Date: Tue, 25 Jun 2024 12:13:04 +0100 Message-ID: <070dd4ddc1977e63bbc069bba20f7223fdf46505.1719313663.git.anatoly.burakov@intel.com> 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 cca18db413..ac592fc3e8 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -9417,7 +9417,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