Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp434744lqh; Tue, 7 May 2024 03:58:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWEeDzQy1h9V5cxWDDhgYRrJjJfs25YI+cwDWmRqGiluW0W2kF+Qq45+xUwSXX0TS7P8mmjbXLVwbsZijVEa9EqqHHUXEWLhRUapvB1AQ== X-Google-Smtp-Source: AGHT+IFwPnTJHdKIntYFrCAmt0XQoqXY9KrpemxNMpfKfpPviEez3KthQ75Pp43nCVP6nyckk73v X-Received: by 2002:a17:903:32d2:b0:1e5:2a20:2d68 with SMTP id i18-20020a17090332d200b001e52a202d68mr14860622plr.47.1715079492152; Tue, 07 May 2024 03:58:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715079492; cv=pass; d=google.com; s=arc-20160816; b=VfiTjgBYVPn9kKK3y0vKVzeaZBk6/rbyNTE5RQzGm4fxXrcVGtM5qdN1PdU8F9aWgE xGLa/+z5s+wVLdd1SySNR+zyHQfw5ex2WRakhNxo42AI/BiEXUqh2YduqKBPNk6fK0V9 V0axkY2XM7ojuTQzUaDCqJmiGL+lYRzvlsKcOk8HIbwWu+n9ljo01dZ9dKvvgmBUlNxC Qp7c7PWgr1btSbBzOBsHKFUmrWzFhU21dTResRY9Bt2oDYzsvjk+P5TS7WbJ31xC+cEB QSGkIAcyyfGRMilWwagcXXZRq98JIdDJ0moK4llTZEpzFfK6fP43zZO9QPv6PNl4NCXS +A3g== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=JYvIRs0XFJomlXYV3eBdzKIkHOQbIfz8VbwZsGzycRw=; fh=wpGFVURqdBYDJvISrQoODZEHnVcuUZOfUAhWJ5UTCYQ=; b=gcmwm/zi71pKZ+3pM7sVY+8cYrgV2lhIPmVe879AA6sze20++Gq1o1gtm0k+OzYyM9 U0YhBYk+4yMacF/ubYsTDo3vnQznTnw2qp0GkwCGd0S/hFJaQQrK/TTIOKMBbi6a2vZY CBHjSDBXmsD3COoTYxgrJYCT1AwR+Jt2CCjQa88Ob3ygamzOnRGHpL55kxtpnipxLY3R bbCEny0EjELhmLaCH36AOih7txTjcjAWGcoJH21f+/Jqp9Vpb65KUsbMaAfl0JTWfiSg li1BFZM8bneYDB8+2aH5VGFGGivaOoGrqKqVn1UfYPFrJuxnIt3Kdlzn+IHBksTxOwu1 yYQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=CYz80e0s; 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-171133-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171133-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. [139.178.88.99]) by mx.google.com with ESMTPS id p15-20020a170902780f00b001ed4504201csi8041991pll.447.2024.05.07.03.58.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171133-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=CYz80e0s; 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-171133-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171133-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 47A1128C2BE for ; Tue, 7 May 2024 10:47:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FCB415E5C6; Tue, 7 May 2024 10:44:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="CYz80e0s" 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 74E41154450; Tue, 7 May 2024 10:44:48 +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=1715078691; cv=none; b=PHurapU6Gqvz0warILPkP1G13Z5oNuXaEpN1uEM9DhE75nAV7MnV7Wxu+aNe8BK/llAF1VNGrkbBB5zh0NGAfIx4nptKhiG6WlyK2PwaFJJK+Y6gLaklob7vcFMF5QrqjSp8qzDc8e5AII5v57WUTgzE/T1xcb0sLwGWeg69jdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078691; c=relaxed/simple; bh=BXkqTGf4ljiO8BNjQTNrgJXmlT/C/AanHIXAnkbe1W4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=C3AcZ7wX6mE4YieKvThv77iXyE393aIjTQdN3WXohHMyoZl6og1vVz6JWnrU1SOUd5RA2xkBKgm5bTpkbOFgw3xdgwXbUnzph54c6GR+FjJsQ+DyKuFDer5nF1TwLXeDchTl0DWypGZRMtu4c/o1JuYyDTRxbotn/yCSSoR+nCA= 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=CYz80e0s; 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 5B51B6016A; Tue, 7 May 2024 10:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1715078675; bh=BXkqTGf4ljiO8BNjQTNrgJXmlT/C/AanHIXAnkbe1W4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CYz80e0sPA5wEw5rSIQ7nlHRJyjF8l9bjP7kzn8ComkDvhgPbyNxJ3Nc0JvTJL40a XTKsttYh8NjiKa68lZ5+bcTDa5VLtpwkCJcn7+3/dUkfKeb6FCxx0xEuuMXj2MUP8Y q67RMDRdChhGKufsUkHWEs5dYmNVd8Sjv5B79oALukd9jyDrZtif9vPamoq+kIq7/a ii5LsFILTX9z5+pnXYjFnhFGw3X8Ub/TYuZPPXNFRF2F4YgukfTSt2Wh/Eyd0FLQ+q lfWBJ9f5Z2SohloS4a0zCpCDFj8rlRJVsMRAslmit2krLqiV/CzZmkuvrtsNDsJapK GUszAd9QAKuow== Received: by x201s (Postfix, from userid 1000) id E9930203F6E; Tue, 07 May 2024 10:44:24 +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 13/14] net: qede: propagate extack through qede_flow_spec_validate() Date: Tue, 7 May 2024 10:44:14 +0000 Message-ID: <20240507104421.1628139-14-ast@fiberby.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240507104421.1628139-1-ast@fiberby.net> References: <20240507104421.1628139-1-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-Transfer-Encoding: 8bit Pass extack to qede_flow_spec_validate() when called in qede_flow_spec_to_rule(). Pass extack to qede_parse_actions(). Not converting qede_flow_spec_validate() to use extack for errors, as it's only called from qede_flow_spec_to_rule(), where extack is faked into a DP_NOTICE anyway, so opting to keep DP_VERBOSE/DP_NOTICE usage. Only compile tested. Signed-off-by: Asbjørn Sloth Tønnesen --- drivers/net/ethernet/qlogic/qede/qede_filter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c index 3727ab5af088..7789a8b5b065 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -1952,6 +1952,7 @@ int qede_add_tc_flower_fltr(struct qede_dev *edev, __be16 proto, static int qede_flow_spec_validate(struct qede_dev *edev, struct flow_action *flow_action, struct qede_arfs_tuple *t, + struct netlink_ext_ack *extack, __u32 location) { int err; @@ -1976,7 +1977,7 @@ static int qede_flow_spec_validate(struct qede_dev *edev, return -EINVAL; } - err = qede_parse_actions(edev, flow_action, NULL); + err = qede_parse_actions(edev, flow_action, extack); if (err) return err; @@ -2023,7 +2024,7 @@ static int qede_flow_spec_to_rule(struct qede_dev *edev, /* Make sure location is valid and filter isn't already set */ err = qede_flow_spec_validate(edev, &flow->rule->action, t, - fs->location); + &extack, fs->location); err_out: if (extack._msg) DP_NOTICE(edev, "%s\n", extack._msg); -- 2.43.0