Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp542353lqo; Wed, 8 May 2024 07:36:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUC1RFzDk49Px2P5h+p/ERKCKyfEvc8zNJsRBRD4PeuwbnbHBzyu6wihYQ39m0PJd1MZNXgTC2V3Qh1eZgJ11sHu7yceyDJR767sYlhqw== X-Google-Smtp-Source: AGHT+IEqi/2UxIHqM66S/bTFBi8KqINfQfLjMmyh5WK4z2qRnYCv0Hrqdh+PO70eIknpJGEsebF8 X-Received: by 2002:ac8:5d12:0:b0:43a:abcd:c9bd with SMTP id d75a77b69052e-43dbf84e5e0mr34928601cf.45.1715179011516; Wed, 08 May 2024 07:36:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715179011; cv=pass; d=google.com; s=arc-20160816; b=S2Kg6zvxS66tNstX6C5rjaZxL0apR1rrXP04xJNSa/XVfH4Obgzv9MiDCPFeTy2S3o Jd1Wplm1RGwK28TZRb9LobxBXx8Pj5E7pBchX1hlsd8gKAZKepW54Mtow3/CHtTtwI0n 8vpIJtvQ1MM39BwxxGAtW4P+4nBLdmYw0cTCREqQYHzQG/K7dgeqC47u1EbVbMXdfAwu MYTsTHIdQ6/kdxKo72lee1FnPPb8Nl6f/sfw29y7WeJGbRyIoNejnRh+RdHKb8UYBI/s tki/SGpYUnifQTSAZl6zE9DobJNskI8eZcwrqdBVeJ+e1llGgAJgUYnUFOowQ5YNyA/J WqNQ== 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=F6UM4lWtZPapD91PKMK4IGZQh1IsFH0ST7H7MUjVRbU=; fh=rqK/kbiHXEsDhCYp7FUmdresDQTW1BsTvC4AiyDFYWc=; b=C+81h4XnBMMC/zatvTx5hNehtwK9wZBm8LOTJrAY61+GrMoMtRfIkCUOJDW5QXk+gQ XfCQGjfm10hdOP+yNc/T5BErcd3vUmeKp72uukyLsHu66uh2vsp4XuEBpeG2zv64bsb8 cPUF3k0sjPo6b7Puex2Equ7A3hc8w0ngzAr/9EEzTvaD07CTuLoujMEkadEpDn/2d7ud Pn2at0swHuSSPMgPOFsGTN7luEuCsB3AVMlRP/IVnheN/gsGrkovpc8fqlXcxKiefWLi AeQbJhq0q05er8PvshIRXsIrjvlmhup9SIsQpEE1ZdsJQEv7RkYLQZvw1xihbs4tbydk 50Jg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=k5Qtz+RQ; 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-173412-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fiberby.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m16-20020a05622a055000b00432cf4ff476si13826040qtx.551.2024.05.08.07.36.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 07:36:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173412-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=k5Qtz+RQ; 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-173412-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173412-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4656A1C23AEF for ; Wed, 8 May 2024 14:36:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69CDF12BF31; Wed, 8 May 2024 14:34:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="k5Qtz+RQ" 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 84D628625D; Wed, 8 May 2024 14:34:37 +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=1715178879; cv=none; b=lI3mR8XlRE6bFhQ83rIXnX39a1MSK9tohsn9Qx+VQU3Czn7cMmE6FvTFlKyRdnAOM/i4M9jhCbUBR6tmmREVeMaZ0+laYHrVXtk3qTNbHTb7zrcdYobuHMzjtl5uyTSBW8gd/S9nQW6YkCFTO3GiHzdOgeJj/710s8Ul7Un7b10= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715178879; c=relaxed/simple; bh=aMvLMv604BjIOtpjuNmzesCsS0tjefV5UKuS0i/vJVk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Tc9Bbi1lRm31VU07VNPI2k/XpQYf/7GYVz6UVjzXqXd2Ki5aSfQpQmQFoHH8HdltWKHUkDGwihsvZ8pGc5IECF0KuitME+NNsBTEhxhQYqsnn15peQff3qeWecnrcAauEOghv59bYm2dR6TTwjYDEzEBX6e7qPsGwVOowu35BWE= 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=k5Qtz+RQ; 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 A65FF6016A; Wed, 8 May 2024 14:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fiberby.net; s=202008; t=1715178869; bh=aMvLMv604BjIOtpjuNmzesCsS0tjefV5UKuS0i/vJVk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k5Qtz+RQFS11QPHCQd+usHXryIouu86sXAqfwQvgxnboODn6kOM7Nsen3/ryxOdEQ TKAhxnnDbSUmu/wYJTx2dXsEBXapnz9YtrwbJILt1nvk8bVvB8SEAUKfjesqOw/HiT IPI6mHrqBFfx/whMXyCTtYabvjTc/XbSN61lCI8HWoPhv7TaUpuyPNHino4NxP6hUT Cg7C9hhFmSnkgyLwCMwXHw6ioVKNeqgVZY9BsQlTnfFUstChzisdy/F4aBT+e1+NPF KFQwLOt2F5hV9298OEE4wXGaHR1s7ESLchow5WgirXuZcoG2vEVeKd5si7QlWq6ki/ PRkpreuuvjwUg== Received: by x201s (Postfix, from userid 1000) id 620B5206CC6; Wed, 08 May 2024 14:34:06 +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 , Przemek Kitszel Subject: [PATCH net-next v2 07/14] net: qede: use extack in qede_flow_parse_tcp_v4() Date: Wed, 8 May 2024 14:33:55 +0000 Message-ID: <20240508143404.95901-8-ast@fiberby.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240508143404.95901-1-ast@fiberby.net> References: <20240508143404.95901-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_tcp_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_tcp_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 ddf1d6b0fc83..9fd08ee252ae 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -1796,13 +1796,13 @@ qede_flow_parse_tcp_v6(struct flow_rule *rule, struct qede_arfs_tuple *tuple, } static int -qede_flow_parse_tcp_v4(struct qede_dev *edev, struct flow_rule *rule, - struct qede_arfs_tuple *tuple) +qede_flow_parse_tcp_v4(struct flow_rule *rule, struct qede_arfs_tuple *tuple, + struct netlink_ext_ack *extack) { tuple->ip_proto = IPPROTO_TCP; tuple->eth_proto = htons(ETH_P_IP); - return qede_flow_parse_v4_common(rule, tuple, NULL); + return qede_flow_parse_v4_common(rule, tuple, extack); } static int @@ -1860,7 +1860,7 @@ qede_parse_flow_attr(struct qede_dev *edev, __be16 proto, } if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IP)) - rc = qede_flow_parse_tcp_v4(edev, rule, tuple); + rc = qede_flow_parse_tcp_v4(rule, tuple, NULL); else if (ip_proto == IPPROTO_TCP && proto == htons(ETH_P_IPV6)) rc = qede_flow_parse_tcp_v6(rule, tuple, NULL); else if (ip_proto == IPPROTO_UDP && proto == htons(ETH_P_IP)) -- 2.43.0