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 230C74567F; Mon, 22 Jul 2024 13:00:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84EBC41143; Mon, 22 Jul 2024 13:00:16 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 2B0ED4027F; Mon, 22 Jul 2024 12:59:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721645999; x=1753181999; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=A8IAv88Jkb7auYo2xK/Cd2XpFQTmy5PR8VNQtLCITB0=; b=AyagnAKcp6Vfyp8Jjy8FHjia76eOaz2QBNAq5xqAaGquAGQJcLTfjW3m Hp1QZsxSJi3rNHI/6eiD0d82belOpe81CQ7JS2MSiIx1/z8ymTtgML7D9 rYzkV7Nx73x+VmiWpyHR/SxzADP1B4gJjbPkz4PM7yPPcE0lQpPylCUmZ WpcYOFbGwCcDdOi8wIaZug4ps1rrGchPQ9U0GSygube3wLm6GlUXYqiH5 qDVHXV2hhLDBbkVZpWeU4gLWyjHT/3TMGoYgSaGdswhZWdwmgkpd5asL9 IG87v3aZMLBpyOZVd3qY1PhmWnUD2d8VsKZhKMB/3Bi8GWP85vmetyoUK w==; X-CSE-ConnectionGUID: MiBh+sMKQoWKJA1jWbWlyA== X-CSE-MsgGUID: 8Q9IAHQnSeKd7TjAvf1tJQ== X-IronPort-AV: E=McAfee;i="6700,10204,11140"; a="36650484" X-IronPort-AV: E=Sophos;i="6.09,227,1716274800"; d="scan'208";a="36650484" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2024 03:59:57 -0700 X-CSE-ConnectionGUID: C1G49tKESayiLq2Amm33tA== X-CSE-MsgGUID: LHY9q1/5QFKfkXxEXeVbnQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,227,1716274800"; d="scan'208";a="52579731" Received: from unknown (HELO silpixa00401176.ir.intel.com) ([10.243.22.170]) by orviesa008.jf.intel.com with ESMTP; 22 Jul 2024 03:59:56 -0700 From: Vladimir Medvedkin To: dev@dpdk.org Cc: bruce.richardson@intel.com, stable@dpdk.org Subject: [PATCH v4 3/3] net/ice: fix return value for raw pattern parsing function Date: Mon, 22 Jul 2024 10:59:50 +0000 Message-Id: <20240722105950.199804-3-vladimir.medvedkin@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240722105950.199804-1-vladimir.medvedkin@intel.com> References: <20240722082836.176515-1-vladimir.medvedkin@intel.com> <20240722105950.199804-1-vladimir.medvedkin@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 If the parser was not initialized when calling ice_hash_parse_raw_pattern() -rte_errno was returned. Replace returning rte_errno with ENOTSUP since rte_errno is meaningless in the context of ice_hash_parse_raw_pattern(). Fixes: 1b9c68120a1c ("net/ice: enable protocol agnostic flow offloading in RSS") Cc: stable@dpdk.org Signed-off-by: Vladimir Medvedkin --- drivers/net/ice/ice_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c index 506ea261e8..1188962752 100644 --- a/drivers/net/ice/ice_hash.c +++ b/drivers/net/ice/ice_hash.c @@ -653,7 +653,7 @@ ice_hash_parse_raw_pattern(struct ice_adapter *ad, int i, j, ret = 0; if (ad->psr == NULL) - return -rte_errno; + return -ENOTSUP; raw_spec = item->spec; raw_mask = item->mask; -- 2.34.1