Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp499048lqa; Sat, 27 Apr 2024 10:37:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbPgmlOi+ac9X3MDrCHgPC5nnZ2os68IF6taPXmJ2Esij8Swk+375zOnorQb2Ykc4GoHpKsJIZWegHzl6hmKArkhIvV6Ou77IaKSrRXg== X-Google-Smtp-Source: AGHT+IHsbfv/mkE2ognT/Ky8sEKfhwhK9t2/Z9mfLz4o6VO/Gw57836vC8DsnZ52IMZZOJLdLZFZ X-Received: by 2002:a17:906:2c4e:b0:a52:15dd:20d8 with SMTP id f14-20020a1709062c4e00b00a5215dd20d8mr4462486ejh.26.1714239478390; Sat, 27 Apr 2024 10:37:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714239478; cv=pass; d=google.com; s=arc-20160816; b=YRKvRuJHltAS1pKBJr8QfKIXxbW0QGvq80uLuGq3hP8JiT8YsixFA1hU1RHSXIV+Gm NZkV7hsEgaB/h8zQy3bIDrlYtHqXvjRoICzNgp3rjf9KEJg+6uOz4SM46ab4TkQTb3zL i6fiQ3RYl+39F5qvHNswQghETaW4BpAtS7sZVlD84z+nMHFC9bQwtoNnGo4l944yBfbX 4yzOdO1E5LhWCdJJD2UbSWZJJDVVgxCeHH5UgJx5oqaRFJm+iHJEqVtsWTVukW1PNW8n KIEKOjU/06/nxtuKi+byMjJvQ2K8iAmlxKrvN/2Q9+7ynhxOeneAYaInmUxphgpsVUf3 vvbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Fxy8kwApy8wZHe/ghVE654l/Oo2IirDTJTWg/mkvJR8=; fh=D0X8tNX20EwwY8LsW75ktzRIbuakLBKA2Jey3l3+ASs=; b=DsN8OZiHHonk/5zPCqUOWc+7Y/2s/rVLFFszValbwRHWmhX98Y10/YiztPln1/Zl2Z 7seeIDgbmbgoaou+BlwRFGNPrE+R4ZAv7Q58CaEgQrWoQbxX3Ba8iY2dpS4vOfsL2f4e QPofEBmfnt3HObEDG3Fq3/zHLY0PnzdIn5e7GPWI2ojJ/H17Dod4/oyLTySbj+3jFkmW TFqRPYdJ3v0pnFKJVnthKVYzdycFCdwPHN8LnsSIFyEMuqUz9sA858nyYvm5lXoBKG0i HYDJ3pwwwiuWo1Fnyh46vgdmLNvqBb1mzwBBOapJPtzahCyKDMLsUpV2zEPlHgU090og qAPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M8tlWOYI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id d5-20020a1709067f0500b00a5887c3fd8bsi5270545ejr.135.2024.04.27.10.37.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 10:37:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M8tlWOYI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-161114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 206251F2180E for ; Sat, 27 Apr 2024 17:37:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C4F2143C4B; Sat, 27 Apr 2024 17:37:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M8tlWOYI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F5BB848E; Sat, 27 Apr 2024 17:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714239468; cv=none; b=JOOFRH0jCvfu391ecdxkIVOVm/UYNf/7ZyeQHiBp/1EwN5zOW+jOUrtOpFD4XiBIsDI3SjJJNkFFIrrmQLydQ1+uZZrWY4jTv/La60x0XX/N9DUwwKjQboSB3k6sSarLoaJSpIm+e4+vVYQlQqx9m9A3s4DiP2lzQU13+sV5iJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714239468; c=relaxed/simple; bh=XnNWjzxG2PKXmbkTQT5QZBRkt1BXERMEFNegj5IzWC0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FDB8NunV1QRcYaPglCOr4pH9mvb+vNe2rQugy5b6pMGVxZT6qTSA0rVYzCGv7RtYQwo3sfN4N3ataKbr/O7u+m7VKI3abhk7p7SwwgtBTDIHrQo7nI0L217mnHxD1mQM1gukujlbulVdhZEhbL7BRQ//0nzfewLwCCVtAmKRWgw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M8tlWOYI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54BE1C113CE; Sat, 27 Apr 2024 17:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714239467; bh=XnNWjzxG2PKXmbkTQT5QZBRkt1BXERMEFNegj5IzWC0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M8tlWOYIZGeXdyzLebQmkFSKu2GO2KHYYdWaxg4JY9MIRotbGdLTVLBmA6RGS/jbc tUDB/sebDS8GGjXcsoajkNrKWh2a2RO405LeuMfOW8IndnFccvVEqNsDOBP8tp19t1 EUL0r7kVtxwOZqOyILO/X9bXTHZoROhBEZvMBdWy4wGzAhkQO2SHwlL+KjkiRCFPhc 9v9BV4HekXU/t5A1RHdvK4H5Lrcauhc38N/0hYPWA2uppBOs/xAaoH9fNRvIfyBHBr JE2Uvi0KBIyJ13XlLjlS3kriYfL9+5RVxjeAzHI+DL2Ev8iL0ydP+qvDkPJvTDn+c9 1Cy6MVlyqLfSw== Date: Sat, 27 Apr 2024 18:37:43 +0100 From: Simon Horman To: =?utf-8?Q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Ariel Elior , Manish Chopra , Jiri Pirko , Pablo Neira Ayuso Subject: Re: [PATCH net 3/4] net: qede: use return from qede_parse_flow_attr() for flow_spec Message-ID: <20240427173743.GC2323996@kernel.org> References: <20240426091227.78060-1-ast@fiberby.net> <20240426091227.78060-4-ast@fiberby.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240426091227.78060-4-ast@fiberby.net> On Fri, Apr 26, 2024 at 09:12:25AM +0000, Asbjørn Sloth Tønnesen wrote: > In qede_flow_spec_to_rule(), when calling > qede_parse_flow_attr() then the return code > was only used for a non-zero check, and then > -EINVAL was returned. > > qede_parse_flow_attr() can currently fail with: > * -EINVAL > * -EOPNOTSUPP > * -EPROTONOSUPPORT > > This patch changes the code to use the actual > return code, not just return -EINVAL. > > The blaimed commit introduced qede_flow_spec_to_rule(), > and this call to qede_parse_flow_attr(), it looks > like it just duplicated how it was already used. > > Only compile tested. > > Fixes: 37c5d3efd7f8 ("qede: use ethtool_rx_flow_rule() to remove duplicated parser code") > Signed-off-by: Asbjørn Sloth Tønnesen Reviewed-by: Simon Horman