Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp435020lqh; Tue, 7 May 2024 03:59:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxTz2iPZXZe0cr5uyZPdnnkOfHoES+W37yw+a4yWr4+H7QkPYq6rVboviJpTM8ojT+HA8mMtnqhGPYWJ+phQzJNtLEvo9aP2VwKl/jog== X-Google-Smtp-Source: AGHT+IF2UUtvvdwbEbiPS/IAqfoWCDFtXnxs0GDx3jb3T5D5OehyaXwVTQgpe9q4os+2HpL182PV X-Received: by 2002:a05:6358:99a8:b0:18d:8fd8:e523 with SMTP id j40-20020a05635899a800b0018d8fd8e523mr13364156rwb.15.1715079546886; Tue, 07 May 2024 03:59:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715079546; cv=pass; d=google.com; s=arc-20160816; b=McuQxZ0I4kVkFqdA+INmGz5ksmdVD2d3EF/MFOnMrsjR6qpDoD2XochCZrbzBYFzPV /uE4x24W0WuLF88j1SIXaAqSgq5LuqvbL1WxJg3Tdmv0DyT0qoicHBS02URjRTdA/JFC UgTICfEV1WGLhJBB9ruCiPzDdCgm7ShobF1d/+sHhWRAtysqoXYYEruD+7cFqbc688EW TEVjiqPyD9ZXpoF4uHviUETq/StqrVxLKveLzf+6a1OatdzBBjtxhifm6ZkhvX0AoeuP R6OBwZU0LKXvYUNycKFT+fJIJhbvY34XZixE+qi7U7WYh59wOadCN1JZuoKA52mxKmGp JcQA== 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=JsIyQoo13gHJsEb8trAiCica2HsRR8GNku1D9gTNG1Y=; fh=wpGFVURqdBYDJvISrQoODZEHnVcuUZOfUAhWJ5UTCYQ=; b=XKe6H+rug4Ak0zI7dSCyr9YlvBBGnlsG7NbNYE3c1LH6ii2aDyAQqY33+W3KdhOT8i d2MYbGsur4xiqq1IlkCWtmUkqvVsYh8YDVYQ8h+9CXU4x4nL1y8EgJCps10stOcsmnPc 4+DOuFjPJ3fD6KjZQKcWAgbbgISuLsHPcdxc1uTvWITYMxWZaBN3hJcUOuqdhhFq/Vg/ sMvcarj4bmltkY0M0/BhotCF1ym+cjN3tsAEhOjaWolUhA9Zud+HuwVTqvNY8uIlNycw B7KG+fLJayC2z7MffZjPPiR37N2C53lmj8DJFKx9FJO5GNRiPn9Tz7oIg9sUm7p8hema 9pDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=D7eB5DRe; 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-171123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171123-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 j23-20020a635517000000b005f7ff55c41dsi6065743pgb.665.2024.05.07.03.59.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171123-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=D7eB5DRe; 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-171123-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171123-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 8D65928A5AC for ; Tue, 7 May 2024 10:45:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E553B152533; 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="D7eB5DRe" 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 DA32BAD5D; 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=1715078687; cv=none; b=GWep9ep/uq30zLWz0Phq13cSVFaQWTlBnHY+j06gqVOZE1HJqM78CibH9S5sKiGnsFhoM4TMqU2kxjSIZHDd78l/8CP3RNIE2l3kFeoLQVwHVoZbLxPcOr6mrlsrvJiyosWO01azCChW66rxPhD+5VjPvP2AGTCJYd6B854c1sk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078687; c=relaxed/simple; bh=EpF0Wn59BtuNgD/0/x/C+iR8eVWPwcN13ZAKr2kNM2M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lAasTuObJTN5FjgD42fDu9HeZyMOZeaBvU1DN+nnHoh1WPcm9mtwPHIb5Ri7ImwCYQbR0OEF1aImESgrImfmOh/3K0sLskWuFZs9+eJg6oRLf9NsRSiQ7QY1d1KoE+PGcEp7ip4ieMvLVk4fE9YQU+FMfRTCD+4nK3jsUJa+eP8= 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=D7eB5DRe; 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 3D014600DC; 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=EpF0Wn59BtuNgD/0/x/C+iR8eVWPwcN13ZAKr2kNM2M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D7eB5DReVktLdgRHC9DMQ2aoVgHUk+Xq27OYF/abTr/kApJVxwJQ3MrhzWL7urCPD x5HZWtnS7BCDS5f+YKX7gUu46MHBd/b8mMT8lmkwq7SbwICQOMHgtBUQsjM58aqjaR 8k9LZCQjGjwXab+klo0VjOqt5fvi2JTZDQ7VFnX1vls0Dj29XbAlGZXjonAUZevmPX qR1Gvkak9/lMgzNROqgW8QiXY2QzogXtsxijb0ShwzEwYdkegvPFxnh65L2YJ+jAVE gQe37Yl4uAGAoKzB+MFOtGUh2UHWZYTKllZhjPYsWD4rT0e/UB4KUq11uiKqIMslml MGbBirh062OMA== Received: by x201s (Postfix, from userid 1000) id 43598203663; 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 04/14] net: qede: use extack in qede_flow_parse_v6_common() Date: Tue, 7 May 2024 10:44:05 +0000 Message-ID: <20240507104421.1628139-5-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_flow_parse_v6_common() to take extack, and drop the edev argument. Convert DP_NOTICE call to use NL_SET_ERR_MSG_MOD instead. Pass extack in calls to qede_flow_parse_ports() and qede_set_v6_tuple_to_profile(). In calls to qede_flow_parse_v6_common(), 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 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c index 0d429f5b9c57..d151b64a0436 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -1722,7 +1722,8 @@ qede_flow_parse_ports(struct netlink_ext_ack *extack, struct flow_rule *rule, } static int -qede_flow_parse_v6_common(struct qede_dev *edev, struct flow_rule *rule, +qede_flow_parse_v6_common(struct netlink_ext_ack *extack, + struct flow_rule *rule, struct qede_arfs_tuple *t) { struct in6_addr zero_addr, addr; @@ -1739,8 +1740,8 @@ qede_flow_parse_v6_common(struct qede_dev *edev, struct flow_rule *rule, memcmp(&match.mask->src, &addr, sizeof(addr))) || (memcmp(&match.key->dst, &zero_addr, sizeof(addr)) && memcmp(&match.mask->dst, &addr, sizeof(addr)))) { - DP_NOTICE(edev, - "Do not support IPv6 address prefix/mask\n"); + NL_SET_ERR_MSG_MOD(extack, + "Do not support IPv6 address prefix/mask"); return -EINVAL; } @@ -1748,11 +1749,11 @@ qede_flow_parse_v6_common(struct qede_dev *edev, struct flow_rule *rule, memcpy(&t->dst_ipv6, &match.key->dst, sizeof(addr)); } - err = qede_flow_parse_ports(NULL, rule, t); + err = qede_flow_parse_ports(extack, rule, t); if (err) return err; - return qede_set_v6_tuple_to_profile(NULL, t, &zero_addr); + return qede_set_v6_tuple_to_profile(extack, t, &zero_addr); } static int @@ -1789,7 +1790,7 @@ qede_flow_parse_tcp_v6(struct qede_dev *edev, struct flow_rule *rule, tuple->ip_proto = IPPROTO_TCP; tuple->eth_proto = htons(ETH_P_IPV6); - return qede_flow_parse_v6_common(edev, rule, tuple); + return qede_flow_parse_v6_common(NULL, rule, tuple); } static int @@ -1809,7 +1810,7 @@ qede_flow_parse_udp_v6(struct qede_dev *edev, struct flow_rule *rule, tuple->ip_proto = IPPROTO_UDP; tuple->eth_proto = htons(ETH_P_IPV6); - return qede_flow_parse_v6_common(edev, rule, tuple); + return qede_flow_parse_v6_common(NULL, rule, tuple); } static int -- 2.43.0