From patchwork Wed Apr 24 12:53:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= X-Patchwork-Id: 13641829 X-Patchwork-Delegate: kuba@kernel.org 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 0660915B140; Wed, 24 Apr 2024 12:54:07 +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=1713963250; cv=none; b=Ncxj0amFs3/Ql5s0vmfctm1vdu5+aIaa3lrlJ4WYxMH1FmtLnsroRZyvAhbzh60XyQbk27tCJpT5c2AeMLf32/+KP1sits4InXNQIGZrOU4ev/XHhGFw5dNwe7vyepz+bkFqa2DsSeKL40BRSNkHHUUrLs3Nrh9raNOpMQDly1g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713963250; c=relaxed/simple; bh=iNH+eQ6aAUewGyeXzpG70jlt31YtG/wfET46QLPSCps=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=J4SuaQRvVjp8qZQQfAXgVqAQZ3XvAOa+RCZW3ibxdlNny2EB5k5gw6JwTW554+Wz8ArcnjfefdUQxyh9UvXZlFUpN5YYu0ENDuUhPob9V/GmipEuSS+sG3GZ2qK8jQOkrBgS3xyK/fSolqTDJZv2AmhpYugCt2EofaR7F17G1wE= 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=R1EhFZAX; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="R1EhFZAX" Received: from x201s (193-104-135-243.ip4.fiberby.net [193.104.135.243]) by mail1.fiberby.net (Postfix) with ESMTPSA id 68053600A7; Wed, 24 Apr 2024 12:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1713963245; bh=iNH+eQ6aAUewGyeXzpG70jlt31YtG/wfET46QLPSCps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R1EhFZAXc18kk+VpEpOy355SLzWZ1Wb7O+jcit7znsOvn6OmX0s2m+hrzRV2EnPzA FAizbkk6jKeYvSTZnMH8X3X8x4GaNONO3LeBQEkYmAw4AazPPR5Yw7weApGmu4bm/L +lQxnfQVSKx0klGZneU0eUtEU+LTQP5VBzMbu0sKQ6ZDHtVmWICH00pMEstmZyA+xM b0mrZihUVpFMfC8EVvUpU5CN7BYF8osVfVx4fV8reClulMYBmRlgB+c/oXhcQAud+y 0UonDeEmlLITL89Ps8T9RH6bnKl75vuem0gruV8umM09rbLTY4G7+f52h04tTKPASJ Gqs7hONU9/owA== Received: by x201s (Postfix, from userid 1000) id D7E0021BB43; Wed, 24 Apr 2024 12:53:58 +0000 (UTC) From: =?utf-8?q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= To: netdev@vger.kernel.org Cc: =?utf-8?q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= , Horatiu Vultur , UNGLinuxDriver@microchip.com, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, Jiri Pirko , Simon Horman Subject: [PATCH net-next v2 2/3] net: lan966x: flower: rename goto in lan966x_tc_flower_handler_control_usage() Date: Wed, 24 Apr 2024 12:53:39 +0000 Message-ID: <20240424125347.461995-3-ast@fiberby.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240424125347.461995-1-ast@fiberby.net> References: <20240424125347.461995-1-ast@fiberby.net> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Rename goto label, as the error message is specific to the fragment flags. Only compile-tested. Signed-off-by: Asbjørn Sloth Tønnesen --- drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c b/drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c index a63b83fa2823..8baec0cd8d95 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c @@ -60,7 +60,7 @@ lan966x_tc_flower_handler_control_usage(struct vcap_tc_flower_parse_usage *st) VCAP_KF_L3_FRAGMENT, VCAP_BIT_0); if (err) - goto out; + goto bad_frag_out; } if (match.mask->flags & FLOW_DIS_FIRST_FRAG) { @@ -73,14 +73,14 @@ lan966x_tc_flower_handler_control_usage(struct vcap_tc_flower_parse_usage *st) VCAP_KF_L3_FRAG_OFS_GT0, VCAP_BIT_1); if (err) - goto out; + goto bad_frag_out; } st->used_keys |= BIT_ULL(FLOW_DISSECTOR_KEY_CONTROL); return err; -out: +bad_frag_out: NL_SET_ERR_MSG_MOD(extack, "ip_frag parse error"); return err; }