Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp434976lqh; Tue, 7 May 2024 03:59:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFaAo2GLlFqmEu6OtN0Dr9oRIeB8nDvNxGil1isCgElR2+iQ3PqLje5lY5MDmAMQnGRe8qhj1a7BfPOAXhv8Pxm2tpStAzn49MA9UWTg== X-Google-Smtp-Source: AGHT+IG1tkkI/83HNqqTnCKgFQf9OheKk7R+FcGy40COaa+jACtopbkd5WlDxLJxUDiEA+TLLAyk X-Received: by 2002:a17:90b:46ca:b0:2b4:3669:659f with SMTP id jx10-20020a17090b46ca00b002b43669659fmr9506414pjb.1.1715079540283; Tue, 07 May 2024 03:59:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715079540; cv=pass; d=google.com; s=arc-20160816; b=F3jzWE2U5sXdPffTxTbCCzNLXpioOwvXD4w38F2oMV5cxz/qcsXNbd+ZMKW2frn7wu /oAkQdMYpAmmSLF8WX1WLzlWRqUpXfW8cwpcYpxy0nnlxoTyqI7lhns8awStEf+6ZGVU BteJK4lYGWaSUvKatryuZdfDemdKsi88EE95LB/pDt72dVnSAS7Kqp87Yot4KiE2pe4V iMGvTkm2q0EHL5YjmVf/EoSmH1JjEA1oIZdR2oje+EgQsPjcqkzYnw9NBFzXGDHX98o/ E6DUEsUkBYOBCJKd8+mxSvmRnxD2fWjFFJlX2IyIDoZOc+0l4OESeaPx6lI+pzMnDDxq Xmkw== 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=SADfQRK6+gqXWWqMR9wvz8h0diNXSq+qH0QvDo+ND9M=; fh=wpGFVURqdBYDJvISrQoODZEHnVcuUZOfUAhWJ5UTCYQ=; b=vOgBfVaoAHtzjtcCINRs3UsZHqlmegl0YHnDV/th4IJSvUU2dgkCTpPGxUuk/hyTCH QcQRB+FaBh7/eENpSElV/xHlw/djF1XfElx4/dm/Udc5Ogh/ilkOLRs0sdcIYW4+CiGn vn9xZK/IEfL9kx/kw6NiBqnsGibDtTovM/6U9mUOcF+BorfFjLwPIN8FJtY7x0uL8WXB ixND/HV68NlawMudzKbQmEBSjH2W5NCVJFFUVgCBPYzg+AxTvFT2EIFFmy+FpFKiU4vp 4FO1mXYgNNzd3lI6Mpr/OjE9DJVGXEf2ccBwkAgd1xBTshADEw+AnX7mUTcbzyDGEug6 nFGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=Mw87Jy9m; 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-171126-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171126-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-20020a17090a2d8f00b002b1dd0e82basi7675541pjd.8.2024.05.07.03.59.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171126-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=Mw87Jy9m; 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-171126-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171126-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 CB44028B535 for ; Tue, 7 May 2024 10:46:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0CAC15B122; Tue, 7 May 2024 10:44:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="Mw87Jy9m" 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 4E72D152E1A; 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=ISAxOx9h1FC2uAneT11mb/HODta2QDUSXWBGesVry1KfduL4Q4JB1oRa0agNSpP0CYoWuS5f8oIfzFBlgZcweZW306uLSRXD5NIwy8PlTVdow1iOLeIXp/Ebe12aCtrjAH+X63M43BTBVadq8h6+olcn0tINCyw/DKiAIN96Cy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078690; c=relaxed/simple; bh=KwE2z5gtpz0YKaaeaNiJAhoZo0dGwsPTDh4T0pF6+aI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=k1eSflnDbIO9e0+WyZNi0/hGRJqJN+owbrMvNM9hjv9ReiGPMpbvjbWfU/eJVw5nl1lLpxn3MfPjGr/cQ+u3CAJc2HAZDsTv7/e+WMOBmeC4qNfaLeQZlqllEMFvKsMdSe6oIcEauhoRwicWIVLRaySxFK723noy/roABgR7Bvo= 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=Mw87Jy9m; 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 1FAD5600AF; 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=KwE2z5gtpz0YKaaeaNiJAhoZo0dGwsPTDh4T0pF6+aI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mw87Jy9mq2zzgPnTycjIq/ewKs59JKKgof2ozFQJl4Gs2Xd2VH8/rNZ3qPXOb9pWt 47rFATEe3DDjmSlBQd02GUbYwlSVd1CjyYbZcJw9uZunfgG6bcfpyMVekmiekJsMw5 zqyP77vyWw1yI7So4PaCS5PEvCj7iqA+ClSv4qp+NW5OA/5BdHtY4mEeGX26TRnR/E 0ELT9XrwnrSs5z+KNq01ZB1SdTi8aqOBHK8/dcyDcTolH/v7dmAcAMw3b+XaI29+jQ koiJsO5jPDl65XnLtjtBM8nPCMBpEJhlNaRpI1RPbhqy2GbdS0Xnsl3fY3LiOqUhpP WiJckEpT9Au/g== Received: by x201s (Postfix, from userid 1000) id D05FB203931; 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 07/14] net: qede: use extack in qede_flow_parse_tcp_v4() Date: Tue, 7 May 2024 10:44:08 +0000 Message-ID: <20240507104421.1628139-8-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_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 bc0e95ba1880..2c1f860d30e3 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 netlink_ext_ack *extack, struct flow_rule *rule, } 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 netlink_ext_ack *extack, struct flow_rule *rule, + struct qede_arfs_tuple *tuple) { tuple->ip_proto = IPPROTO_TCP; 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 @@ -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(NULL, rule, tuple); 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)) -- 2.43.0