Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp433686lqh; Tue, 7 May 2024 03:55:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUWbYigZUbhdty7GCIl5fTkbq659ZS4BiYq6zfzBHiJPZHiN2+5FOE/z3fGtMXi5VrFYdRmFNnfwb13jl9rLtKdst6KO3FYSu5PJm96g== X-Google-Smtp-Source: AGHT+IEEQrAWVZZZ5zI8bAzvkQyW18Dek4CTer+93fREyNY5VRYQw/mmvhzGH5xeD3BjZCo6pVoE X-Received: by 2002:a17:902:e549:b0:1eb:e89:62e0 with SMTP id n9-20020a170902e54900b001eb0e8962e0mr15504706plf.14.1715079314780; Tue, 07 May 2024 03:55:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715079314; cv=pass; d=google.com; s=arc-20160816; b=QOb5WADVc3Jp+B1Xn0hmomJKxu8COzX1lj1GT3JR8IzzqML8skOAOXlVvuRiEMwo5N rzcp11g8CHJ2AuvmvkIe5VYX9XiFLnwOGVHoRhIVGul6Dc11vVyzcQF1D2k2SgYDcHBf 5cxj+ea4zWddcmWFcgl4tING7xF7nF5MyTRfQmQlokLohUgjE1nRA7kJNKjc1ouye/d3 Yg7hThJr3YJqQZpRpxAGv3WAW1Pi9KCWz83lby58LoZccRbMdwv6ENYFdx2ra72bti28 lKMABOnIQ+4Yyj+cA9QGezfoYIO1Mki+YsBIebINu+7xAxpZON9Gm1+KGmmmhU1dOKM/ cLTA== 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=7iUgXBlkP0pH2P+sO97MjBAaxUhZPL1EyOfQhGjLN+U=; fh=wpGFVURqdBYDJvISrQoODZEHnVcuUZOfUAhWJ5UTCYQ=; b=KuI/0XTDGbq9HCN0i7qLv/IcdSeMlLVdyRkmD+Qhr+6PTxNlEP6krSA5Dk6F29mCKS J8fGlZN9z32hiSOj09o4dhXrS5tTY7RlFoqQUEnZ+3WuLk52Q0sMlV3ZhslfcRIsfOdw KaQC6VWJKQ2Uua2JO6qbcjEMIgWVCGr9X06U/BYT/GXWiJ+CW/m2GoCzMHECX0kVumI8 k+tWI4GRmBCuAt3SK7W6iTFVGaVhBELm5zqKkezA0sxGbW+d6T2i5x7i6I+DlfbYURxK Vm8yZEVTaoDiH6dktLsi43LJwbdgOdsre5gUGGuwvXKJ44YMptaFUPLbEYuH1Y5KD5eL 6P8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=LS130bTv; 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-171122-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171122-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 d11-20020a170902cecb00b001e3d3ae4d74si10169478plg.28.2024.05.07.03.55.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:55:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171122-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=LS130bTv; 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-171122-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171122-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 D39A028A4BD for ; Tue, 7 May 2024 10:45:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE9E715250E; Tue, 7 May 2024 10:44:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="LS130bTv" 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 9BD0614EC4D; Tue, 7 May 2024 10:44:43 +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=1715078686; cv=none; b=aTMQ2tzPMmHaUp9yaGijB+gFjAe6cenfkbFXoQG8XSyj23rqpZ24t88vOx36TiB6VfMvBKxARLXcRNilyE5NZ/GTot3K3PYEw2dJsFpWfB2Evg14bmInMR7hpB1vqzfON8+rW/HJYx5fswdiNLt+ZA4hCUaxRfqmDH3g10ypMMA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078686; c=relaxed/simple; bh=Gwag9vXXeqdR/KFA9yZpAgXCO4O5UeNt+6Mvl0e8F8o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tC7jud1Gchqxz8UAOeGMcFdHV2odF9BFDeVyhp6maaNsgcOqE3GJwMQqO99k5pEBobo6BTU1AlRjwYoBQbpwUw2DlhL/IgDrn7knkqhJtd9bNdjc9XXsCpiXsNwXJ8XAWzPhtBysG1QSRLrktXbffog2lC+ds1iFUmatUmMbfGg= 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=LS130bTv; 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 CADD8600A2; Tue, 7 May 2024 10:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1715078674; bh=Gwag9vXXeqdR/KFA9yZpAgXCO4O5UeNt+6Mvl0e8F8o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LS130bTvhWbU1xArtVuPbSmM6z2H5RnnbGvz+xt6SwnZPtxS3j5IRV3EpbhLoxkKS ptegN7THeHEmXHcvZeIeixGnTewK3lWwlM2iX6J0Kv1uSObYST2yaVH1fe7LKvSH7x ELXrvSDO9s6KnotITPmjXQzCjqMzfiiWDtWV7+lLKm0fTrtSvP4UhIQPg04oAQaNZL 0Kn4mhiGD0aCPGmEpujVM+K7aocs2XsiMu/J8YJ+ZWMZLPOIskEmtRSmDlRfsVqZFe tVKilKk4jaLUdNVneBC5IBLJjyCvN4ptamf6+SZBwXNMWxVVNHj3QUpt6hQNDu6gW1 U9GjN4h2qn/GQ== Received: by x201s (Postfix, from userid 1000) id 091382035F9; Tue, 07 May 2024 10:44:23 +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 03/14] net: qede: use extack in qede_set_v4_tuple_to_profile() Date: Tue, 7 May 2024 10:44:04 +0000 Message-ID: <20240507104421.1628139-4-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 Convert qede_set_v4_tuple_to_profile() to take extack, and drop the edev argument. Convert DP_INFO call to use NL_SET_ERR_MSG_MOD instead. In calls to qede_set_v4_tuple_to_profile(), use NULL as extack for now, until a subsequent patch makes extack available. Only compile tested. Signed-off-by: Asbjørn Sloth Tønnesen --- drivers/net/ethernet/qlogic/qede/qede_filter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c index 19ffb0823d55..0d429f5b9c57 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -1520,7 +1520,7 @@ static int qede_flow_spec_validate_unused(struct qede_dev *edev, return 0; } -static int qede_set_v4_tuple_to_profile(struct qede_dev *edev, +static int qede_set_v4_tuple_to_profile(struct netlink_ext_ack *extack, struct qede_arfs_tuple *t) { /* We must have Only 4-tuples/l4 port/src ip/dst ip @@ -1538,7 +1538,7 @@ static int qede_set_v4_tuple_to_profile(struct qede_dev *edev, t->dst_ipv4 && !t->src_ipv4) { t->mode = QED_FILTER_CONFIG_MODE_IP_DEST; } else { - DP_INFO(edev, "Invalid N-tuple\n"); + NL_SET_ERR_MSG_MOD(extack, "Invalid N-tuple"); return -EOPNOTSUPP; } @@ -1779,7 +1779,7 @@ qede_flow_parse_v4_common(struct qede_dev *edev, struct flow_rule *rule, if (err) return err; - return qede_set_v4_tuple_to_profile(edev, t); + return qede_set_v4_tuple_to_profile(NULL, t); } static int -- 2.43.0