Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1694363lqm; Fri, 3 May 2024 03:55:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUt0woMrSeJRL9gEH6TqmM4DXnieSZ+6qnjVVVT6CLNU4g2HYcKHDXOEvPDD0toMO1lJR7sjpaZsHMd0ew1DiAb4XtFCtG/WKikM60ZDQ== X-Google-Smtp-Source: AGHT+IEVk/QLtpm7BDxd4OIDaXHoizSK582fb5JpusJBwd8qX7yLkBsaTx+2hdf24Xg3VigiG0Do X-Received: by 2002:a17:90a:a00a:b0:2ac:7bd6:cc6a with SMTP id q10-20020a17090aa00a00b002ac7bd6cc6amr3036759pjp.0.1714733749468; Fri, 03 May 2024 03:55:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714733749; cv=pass; d=google.com; s=arc-20160816; b=PRyhzGIx9y4BJtaDDJX4reu/CR3dhHpnEy5dkNDV+8CP7o4NW8LpGLWE2Uh9s5uZeu IDbUu8vnYfQNzfydLgw08xNZsmZO3hycquXxjQZqTaxNJ95m7Xz11ZAeGfDviUM/w1km d8UV3/S7JLSgjrPpenPs+CSTMNQhvTjzOBKMMYbZz34PqC2A8dk6pV23sCO4gKmr7HJQ 7l1e+YkURiNWxwP3ajmolKE95kdytftJICMtZv4xCWhZL1yv3A8WBTPECOSiY88dg/5C MMA/InexRonjKDAv4A/pPj1kwv9Zw1/DFWFXgHcJ8OFqAqf3lyaJ0AWv1X9oA7U29sGA iptg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ErWw3Sqq8Uq9rPBldmhbC7IbGKiHD3iFupPJ6E8iPtg=; fh=wpGFVURqdBYDJvISrQoODZEHnVcuUZOfUAhWJ5UTCYQ=; b=x6wLB2kFWM5QgZxhEo+uvjU0AdCscntHEJoaYViRSfvsIoh7ByF8ipaBA+2Cw6Egyd XJNaHaRQpGKAy+n3bSkgX8KZ7mlV+5mR3emSzpooi0qBlnoT1PKqOrKl7aoVzJoP1WX9 WZM+jrsfMaZwBGLQ8E3osecnuLVPY5E+a2TcECRI3Uywma9uTvj3Gt/vEdIWfGj27TxI XBsmxPVRUX9P+m0j+AsvPVI0Ah+sCI0ex9mXr9l7ikCky6xd/xOmRUPPL8qAZkynCuLJ Z6G5LDu9qd5vFfrw9cipFOqekJEaIMgEQ2bs6MTniMN50rNc5xc3ZuH2jmpNDPs+IZ+f +O2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=ZcT+XMX+; arc=pass (i=1 spf=pass spfdomain=fiberby.net dkim=pass dkdomain=fiberby.net dmarc=pass fromdomain=fiberby.net); spf=pass (google.com: domain of linux-kernel+bounces-167541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i9-20020a17090acf8900b002b32a2b7d7dsi2748006pju.33.2024.05.03.03.55.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 03:55:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=ZcT+XMX+; arc=pass (i=1 spf=pass spfdomain=fiberby.net dkim=pass dkdomain=fiberby.net dmarc=pass fromdomain=fiberby.net); spf=pass (google.com: domain of linux-kernel+bounces-167541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E68522814EA for ; Fri, 3 May 2024 10:55:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ABBCC152183; Fri, 3 May 2024 10:55:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="ZcT+XMX+" Received: from mail1.fiberby.net (mail1.fiberby.net [193.104.135.124]) (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 4FE18150987; Fri, 3 May 2024 10:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.104.135.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714733734; cv=none; b=b7XeyqStne+4iXQwqF8epwIsyw9DVg0FqIcyjtnZAaLqFN5nz/x3Gx6mt2I+tmbkFAd43Y3Zm27YDEHhIM8tm2+F1OWwXOmQFQSOdw+lW7+WVJChyqFd2vriARUvzqD5B1JYlCp+g62DR+ulAJhXRO8qLXRdDRlV01sbbxdpxzI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714733734; c=relaxed/simple; bh=nGYHsFL6FMM4tEsZOLRpZNIM5+XUsbVTTzzn7XwQQ7U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=OJWCjWHDQtRmT2AwBB0LhZRQvDwftXSf9UNRsMNA/lc/rLdWJKCQ7dIP9cLOrU1ZPkgm/Cn6Awpr/+fkeQMZR01F7nyrpXnlAQqFZSHK0p5Jcj2uBflEI/+epP99NKgPtcx6fGvZR6cJC554tKv9agbT15/8RhxEfAnjAisBLOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net; spf=pass smtp.mailfrom=fiberby.net; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b=ZcT+XMX+; arc=none smtp.client-ip=193.104.135.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fiberby.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fiberby.net Received: from x201s (193-104-135-243.ip4.fiberby.net [193.104.135.243]) by mail1.fiberby.net (Postfix) with ESMTPSA id 8DAE3600A2; Fri, 3 May 2024 10:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1714733723; bh=nGYHsFL6FMM4tEsZOLRpZNIM5+XUsbVTTzzn7XwQQ7U=; h=From:To:Cc:Subject:Date:From; b=ZcT+XMX+nzID02l85DnCkNTCc4F+vxSwzNsrS0RMxPKwn8E2qss7ei9WQlGjyW5v7 UB2YIC3cfHFEGbEK8f4RPhzt26azUxnCo3TS3k6E/+tz2KzfbPavXLp+IPYKKvEkF7 hlGKHt2bQIYQBtwtqpF5xEKhrM/iXYGUZc7KlbCU8dDVaRpgX+r8OYNfLwDaLjxUN7 1J93FZszlDaR/O70rWpScnb0CKxeOALHLzRCAW4afnfV0C8DLZcOm404GAqeufMi5w W/PG6JJL6Xveml2rkGZH8KKS5Mx93KJnrNBwDDRuaI59b64roYIVedHUZmGGZdbQ2V PHsnvAjKMZhRA== Received: by x201s (Postfix, from userid 1000) id 1084021BB4A; Fri, 03 May 2024 10:55:06 +0000 (UTC) From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= To: netdev@vger.kernel.org Cc: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= , linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Manish Chopra Subject: [PATCH net-next 0/3] net: qede: don't restrict error codes Date: Fri, 3 May 2024 10:55:00 +0000 Message-ID: <20240503105505.839342-1-ast@fiberby.net> X-Mailer: git-send-email 2.43.0 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-Transfer-Encoding: 8bit This series fixes the qede driver, so that when a helper function fails, then the callee should return the returned error code, instead just assuming that the error is eg. -EINVAL. The patches in this series, reduces the change of future bugs, so new error codes can be returned from the helpers, without having to update the call sites. This is a follow-up to my recent series "net: qede: avoid overruling error codes", which fixed the cases where the implicit assumption of failing with specific error codes had been broken. https://lore.kernel.org/netdev/20240426091227.78060-1-ast@fiberby.net/ Asbjørn Sloth Tønnesen (3): net: qede: use return from qede_parse_actions() for flow_spec net: qede: use return from qede_flow_spec_validate_unused() net: qede: use return from qede_flow_parse_ports() .../net/ethernet/qlogic/qede/qede_filter.c | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) -- 2.43.0