Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp430150lqh; Tue, 7 May 2024 03:46:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWn3bPCo8T6EadVSZ7CcwmlnOR9lEexN+kfqBwwlx5ZZJSQkG0YuHBxC8VOeT2kl0E4/eJS5ZH6SoFN8ZkVY76rTMFZhKeJMpCQJ3BhkQ== X-Google-Smtp-Source: AGHT+IE7HCAbBySq0GfPv82nBBw1+KHpNA6wLcJc7mD71ox8cl1shiaLl30NNnVmW+w+6V/maqeK X-Received: by 2002:ac2:51b0:0:b0:51a:c3b8:b9cf with SMTP id f16-20020ac251b0000000b0051ac3b8b9cfmr9374087lfk.69.1715078807844; Tue, 07 May 2024 03:46:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715078807; cv=pass; d=google.com; s=arc-20160816; b=PYNamlmioBs9xSyFq386A7lvclVyT5Z+bUfEDDWzEhqWbgYp+urYV7DlIfvoCxMlpM nIPFoZSkl44YwMnjY5+yEhbBS8FqFVE6jOHeZS/sS7b9z/wPfNTgizvRiDkdb7B9Rco7 smJLaqPJst1nyYF4xTlekMvRTBgJM1XYZvEXJlU8n+DiWWLhO5scGlGD6ptRKRBPYHYj Mlvz1C3RTvkgUUfL0I0Zv9HjDKxt8nGix887zNJdigLOtckz+VfPjL6FjvtvFfo53tgq XhDv+VzqZQJIlgRtPsH9FM+pgwl+1j+IU98UssDszgdTtwbRbwKFSALVLi01ySwQcrMN Wq/A== 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=eCaa+wZZ6XHzAVP5InWVUaqnOgBUKlLwu1Xj/PfQngM=; fh=wpGFVURqdBYDJvISrQoODZEHnVcuUZOfUAhWJ5UTCYQ=; b=EUu6R4udLc1cL2maz/lJfvB+pb9/zLQUMWxJu+6+4WcSg3m91vt7Z7ENuv5HH1g0t9 3FqZ7BfRn5a1LCD1htDuL55DERFUDCLLNnjlFoOcGQCQMVLZJAT+k8vUXKefx9qu1AIz xCoErvEpTjeSgbbgpd1YY4ODY5FJ3PW+kLFx+Lconc0LgLBJO3ExlLKfXGIIlLj5bp/n V8ve5mo5S7F2D84Q1thbyR3HID7No6o7RmovU5gOzS+/VpXNCroL1XzYeTuw7PcNcanU U6csYIidKxxAWArSgA1yQ22DSS9ZXRP2YWVcegSxDND6FAgd2xv8YfQl4NNUCY78Ny6x 0Nnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=ejKQLNTQ; 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-171127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qf9-20020a1709077f0900b00a598d181325si5347453ejc.379.2024.05.07.03.46.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:46:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=ejKQLNTQ; 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-171127-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171127-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8EAF61F256C1 for ; Tue, 7 May 2024 10:46:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 084AC15B155; Tue, 7 May 2024 10:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="ejKQLNTQ" 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 74E7C154C05; 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=1715078690; cv=none; b=FTXnM2JnXOxd0yEzVq+aqXIABPWnN3C25NZJ3s2lGXubZe4/Klkb5R1+vPNzyvIiiESfnoJLlZAWTygtSub5HUw66/xdJ9HU5rHjNJGzMEc9KVMUCtI9uXSHGsXRr4dA6tafjjmwgwgzCpRbI0fpflkYQA4VLS/CYx5HuaQ6lQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078690; c=relaxed/simple; bh=gpoxr0PXu/D1DRjyuxtdjhFXMSd2xA6w+2F/GrIHvy4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jtf/E285ioUjFV7aDJCgvYs7X9A+mF96BUqoSMzBMYxYs/Mbchzb7Fo9aQgS1CD/xlNeX+JImNW37hP+VI+U+WfF8ZQVqpucN+V2EA3pNwnDuVArmUGFgSxGUagAguzjC1vwyrzTUiGFFfVFMj90L2Gf3kvTnnOzotkSR0q2xwg= 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=ejKQLNTQ; 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 5B0AE60153; 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=gpoxr0PXu/D1DRjyuxtdjhFXMSd2xA6w+2F/GrIHvy4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ejKQLNTQKgVk9u5NQzjetT6a7Z7HAZoa+Uiefu0VIwwyxXJlfSHGQeZZOShjB+fYd Hyw/hdYX4Nr6Vht0599UbhLBpcnDfvXMYCFiPJyZhlLw2wwar7D12RpUym+Zkyboi3 mImUt8yEfINbp60+iUEg6JFJa+orJZBGrLFNSdlm71+9VO2p6wP0DApiG+N8Z7gvdX 8uSBGlMy2H/5RK0zKXrLcZPkN1inW/3Xn0HdpRN1cGzUPOXN4VvMccZGMWMwNXcAn+ /cF//soS5HYCbk/pnWHBhA4LUfT4Gdv+OvzqJb+A3QvzPebXvaa+oxKkas/4JULPQV 5NN11DhYSAAgw== Received: by x201s (Postfix, from userid 1000) id 31FF6203B08; 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 09/14] net: qede: use extack in qede_flow_parse_udp_v4() Date: Tue, 7 May 2024 10:44:10 +0000 Message-ID: <20240507104421.1628139-10-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_udp_v4() to take extack, and drop the edev argument. Pass extack in call to qede_flow_parse_v4_common(). In call to qede_flow_parse_udp_v4(), 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c index e7b9aeef5a6f..de6b9a60d4cf 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -1816,13 +1816,13 @@ qede_flow_parse_udp_v6(struct netlink_ext_ack *extack, struct flow_rule *rule, } static int -qede_flow_parse_udp_v4(struct qede_dev *edev, struct flow_rule *rule, - struct qede_arfs_tuple *tuple) +qede_flow_parse_udp_v4(struct netlink_ext_ack *extack, struct flow_rule *rule, + struct qede_arfs_tuple *tuple) { tuple->ip_proto = IPPROTO_UDP; tuple->eth_proto = htons(ETH_P_IP); - return qede_flow_parse_v4_common(NULL, rule, tuple); + return qede_flow_parse_v4_common(extack, rule, tuple); } static int @@ -1864,7 +1864,7 @@ qede_parse_flow_attr(struct qede_dev *edev, __be16 proto, else if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IPV6)) rc = qede_flow_parse_tcp_v6(NULL, rule, tuple); else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IP)) - rc = qede_flow_parse_udp_v4(edev, rule, tuple); + rc = qede_flow_parse_udp_v4(NULL, rule, tuple); else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IPV6)) rc = qede_flow_parse_udp_v6(NULL, rule, tuple); else -- 2.43.0