From patchwork Wed Apr 24 12:53:38 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: 13641832 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 C49D515B12E; 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=Oln61OYMYYIRwwmO5NdZQkm5yZDMYgD1HQby6GkmQmZyedjZcq23iUqMiF4hLbO11G3OVmzADnyK+uxVnwx8fxOVTvw3NuSMMA1fCurv5PHUUnrI4nRkKIumb3C64MawI4JMhRwWPxi/Y+JzBhP4ji5dlGFnhn5VM5WhtMuKJ0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713963250; c=relaxed/simple; bh=spHRJnpxm4ltwTrNamDMm3cZ/Ft8kFmxS/nYJAtGSYE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gR5TPDys/t3s2FR5161qASE8EElgVnRoDcjXdfg4fk4JkBg0Ql3tax0hl4yvP0ZNBbH2pw15NkPpmHGll+uzSKYlpLcLrXJxK1C7PXC05cnDxfsOPc6FieXgUI1bIOS7pIZs5dOWRUkrjEQxrHyO+Hdtoul+RmZNRenbhnFTM3I= 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=D2kdgSKP; 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="D2kdgSKP" Received: from x201s (193-104-135-243.ip4.fiberby.net [193.104.135.243]) by mail1.fiberby.net (Postfix) with ESMTPSA id 6F806600A9; 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=spHRJnpxm4ltwTrNamDMm3cZ/Ft8kFmxS/nYJAtGSYE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D2kdgSKPgFdZlyIJQptx7LcQcJe9l2CiJRu/gkXZzQxJmCRCPXYiuRgLgXszHI9qW jOgaNAlvOxtuZpVsK3fM7Y/dRXdFf0uOKtTXSR+hgHH0rRIQ86o/9Ic2GyN1392oS3 VyNAhpH+qSVr5iAr2L/z1HmgtCHUbAxYCLRWcz+8SOEFqxdqpOnVt4S/zAe0J/QCTz SkcbRCZTV3KbLK8Ls76sE+dU17VeHmpJb/pNIIrulZZNd7Dgcuk3RUI3UMuGy1tSrU CIn5GkqEhf+zefv7y7YgogADjbOYl2gigxsOURMoegAMHcCX6gZsV6BndbigXEmWPt cAbqPKV8qO6ww== Received: by x201s (Postfix, from userid 1000) id 1C6DE205831; Wed, 24 Apr 2024 12:53:52 +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 1/3] net: lan966x: flower: add extack to lan966x_tc_flower_handler_control_usage() Date: Wed, 24 Apr 2024 12:53:38 +0000 Message-ID: <20240424125347.461995-2-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 Define extack locally, to reduce line lengths and aid future users. Only compile-tested. Signed-off-by: Asbjørn Sloth Tønnesen --- drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c b/drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c index d696cf9dbd19..a63b83fa2823 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_tc_flower.c @@ -45,6 +45,7 @@ static bool lan966x_tc_is_known_etype(struct vcap_tc_flower_parse_usage *st, static int lan966x_tc_flower_handler_control_usage(struct vcap_tc_flower_parse_usage *st) { + struct netlink_ext_ack *extack = st->fco->common.extack; struct flow_match_control match; int err = 0; @@ -80,7 +81,7 @@ lan966x_tc_flower_handler_control_usage(struct vcap_tc_flower_parse_usage *st) return err; out: - NL_SET_ERR_MSG_MOD(st->fco->common.extack, "ip_frag parse error"); + NL_SET_ERR_MSG_MOD(extack, "ip_frag parse error"); return err; }