Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp543122lqo; Wed, 8 May 2024 07:38:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUabLSHH5nXyLdd5E6U2WKMwvJ8CgEbMZ1mNVgs1ruS6WoChOYQdhChyeEwv7BkH0+/y0x4e0uAU2me9Iqb8SqYk/kDbgydlfgdFEJnAA== X-Google-Smtp-Source: AGHT+IGBfP35IdfApN3rET5/ZSOcIcIQ9+jCwQ2w4RokTdS4Q7NT3GjY/FTDx666HxaayFTcbmoH X-Received: by 2002:a05:6358:b390:b0:186:40c3:e495 with SMTP id e5c5f4694b2df-192d377c836mr288508155d.23.1715179093153; Wed, 08 May 2024 07:38:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715179093; cv=pass; d=google.com; s=arc-20160816; b=XYRZqMS2uTzILrCqpA2NmLjTrVBGloXyZxHR0mNv9MOuCHAl2eXWtDKX6pBVCLTPI/ b0aOJTAtFWi3pvKOH86SgipCM4pZ3O86LsUIwM9KXdBBNsUKn902VSJRG+i43Jpg1eMA 7bT5a16acJc/Ce0fqECJhXO01BeX0fqJEep96T7Ub4UVk7OnxzMEoN4hyhtqbQ66l6qa Ao6WDVR6SE4aHYoxI3YW7yguYsqsdzkCjN/cN772fZ0j+itAP2wAIeeHWmce1HZ4Zc1T R6MB53HxA89aEj8inZogEokTHjM9W+UhhXHxbSSJbKbcBwei162btoQKkXJuEiv+4xax alqw== 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=xnetljA0fGw9nhAPUEe42PGFt4r9KgCFpNAiPaIjF0M=; fh=rqK/kbiHXEsDhCYp7FUmdresDQTW1BsTvC4AiyDFYWc=; b=NFcYSx1FrwUMMWy0ZxgghMAsiCsG0FNPY1hYCaZFTqgin0Jo8Vk3wwnpDwv0WKCjNB FLRtBDOmBAKwPRgzomuBciodQteV4hEBcE/wFkICuGf468XpTTS8fTx/BcGH3+co+jw9 GibyMY4dluhGphCb7NHBalKZ+9ACkhIknCKA+YFFs9DTBp5PsttbNxQj0x8MQabZX1x0 uKX7LJxhlNqCkYNoSmVMuTWMHdYLB2kq6aAQNpt691uuAaJ/Ifqz32WtduQ7S1po1qAS UOngn5HikVlA5cdDj+P8cicRNjBpUEO5oYBWRjDPFF855s/K/dgZme+HHflO5HlFKzEu 6OvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=aqfQgT43; 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-173406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173406-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 m9-20020a633f09000000b005dc87994572si9979353pga.346.2024.05.08.07.38.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 07:38:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173406-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=aqfQgT43; 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-173406-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173406-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 6B7012867C3 for ; Wed, 8 May 2024 14:35:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 146FD1272A3; Wed, 8 May 2024 14:34:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fiberby.net header.i=@fiberby.net header.b="aqfQgT43" 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 9719E86257; Wed, 8 May 2024 14:34:36 +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=1715178878; cv=none; b=MjZUBLq2Uy8DMZPLqpa7LbCb+utj+lYKwFOrult+fN/b6jckik2z+jMJNUgTGQrcQzirJYGnXYNKZhRL7Rpx+ZxojKM3sfWT6aav6C8pXeiyIFmnb2JAlwa7wKbbXxv1cya+Zeiibz/QLqefH+2hLWV3uGa3o9waXGU9uq36hv0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715178878; c=relaxed/simple; bh=uSVPzv+OmAG08dwGOq8nQVutiO7NPZmEV+r3FDMWn0s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r0kMpYiRSErWU7lp6V/X2tkFuoTG0uLhO2vuJ/ylYXsSU5vHrKpgtmSIhgKB/l1cVJxW+WM460Kh7SNZ7mJcPwtSA+z8H+4kEUp/Jt4/63ik5t3BA/PMoIditqsKaeZxYhXBB/Z05a7z9UzuxIcx1rkF8qkNo1OcAyc93KRpvWE= 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=aqfQgT43; 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 98A7E600E4; 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=uSVPzv+OmAG08dwGOq8nQVutiO7NPZmEV+r3FDMWn0s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aqfQgT43J3YA8SzXRMF4mYdKyKxBmT/phqWCswZJgRWPXnte34h+vQToj5p0apBNE 0fnSgAxSSyfMka18vwWCmZlEKuDL3QVKQBz8UyN7mr4BTWZmRt8gT/17O9j+GjbGWB w0HsgESw0Zmw5VHzdvc1hHwz2kIC/oVk+1i5ACasgrv0fwp5JxiwOp9DrAhHyfGRAD GsD2v0NSiEY64Dbe9DtlifDrv5Rd+ng4B67xFaAVitR6dPI785RcsKVK2G5dbvrD3F kPtkJ9Lj6m5ZMZpWl7PPDBsn+cafdK2kIvYXZpDWk6Bkrwm1/TaqBooA0ORDolcZ5F Wr7tiMcHc86YQ== Received: by x201s (Postfix, from userid 1000) id 6239A2039CD; Wed, 08 May 2024 14:34:05 +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 02/14] net: qede: use extack in qede_set_v6_tuple_to_profile() Date: Wed, 8 May 2024 14:33:50 +0000 Message-ID: <20240508143404.95901-3-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_set_v6_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_v6_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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c index 600b7dc7ad56..0f951d00b10e 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -1549,9 +1549,9 @@ static int qede_set_v4_tuple_to_profile(struct qede_dev *edev, return 0; } -static int qede_set_v6_tuple_to_profile(struct qede_dev *edev, - struct qede_arfs_tuple *t, - struct in6_addr *zaddr) +static int qede_set_v6_tuple_to_profile(struct qede_arfs_tuple *t, + struct in6_addr *zaddr, + struct netlink_ext_ack *extack) { /* We must have Only 4-tuples/l4 port/src ip/dst ip * as an input. @@ -1573,7 +1573,7 @@ static int qede_set_v6_tuple_to_profile(struct qede_dev *edev, !memcmp(&t->src_ipv6, zaddr, sizeof(struct in6_addr))) { 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; } @@ -1752,7 +1752,7 @@ qede_flow_parse_v6_common(struct qede_dev *edev, struct flow_rule *rule, if (err) return err; - return qede_set_v6_tuple_to_profile(edev, t, &zero_addr); + return qede_set_v6_tuple_to_profile(t, &zero_addr, NULL); } static int -- 2.43.0