Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp430210lqh; Tue, 7 May 2024 03:46:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUMHHDIpPUEMyFgNLdCYQg09hKZh/lesvZPlthgYF5MunZrXpuz5zoxQG+hKq3A7J2cZYNY2zLhA3tHSh3rH5MUgQhFJVBTDxc7iCSMsQ== X-Google-Smtp-Source: AGHT+IGRwY7Y+ei8eCGhFnU4LOqXDlUNRf/gAkrMIIcKwW7kAEhHfi7YeJZ0RPiXmQmoqiO5hmDh X-Received: by 2002:ac2:4959:0:b0:51d:abb3:d701 with SMTP id o25-20020ac24959000000b0051dabb3d701mr8136680lfi.5.1715078811776; Tue, 07 May 2024 03:46:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715078811; cv=pass; d=google.com; s=arc-20160816; b=fmzM9KFVBrHCDd4eT1eE/EbIPDlVC8EK8umQW4+eShwBPtBjetwqZ8vpQPs+yNCno+ HjMxECTouDKATJtLPuSiznlz8sTl7Xg5YuQlbKhlmjsGBoDT2PBi1JOD+A8eVhX08DqP +fNCTB9tbPrf4QVA57jBenzOzk0LAI80bw8lGWmBjtcNccO3axMJrBB/q0cy4KPj3qiD AWmb+b14RR2vTrHc9U8dGb85oQ5kyXC8pXil8PMKJRIRvL3VPuCGpaCDFwzPoHsWdqxr 86SaRhIJrViV9mBXnWZ16bFT2j9Ze41UqHwdT7bj8u5Enbi6TRA+wlSuLGzktmZyjAcO JWfQ== 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=L0o5CI9tILTDYlYXef0/vdIeib+xJSSvOf+ddYtmQhM=; fh=wpGFVURqdBYDJvISrQoODZEHnVcuUZOfUAhWJ5UTCYQ=; b=wD5ctkrf+r56YLnzn6yNSpKTuGOgJaMTsZ1N/bl98Gbjsgt98IBuBqkHBfoU8yg900 zuAvjdF1fWJ+CLpdbAWGbfF0UPo6sBNZsneH4c2wVh0g5rL7t7yu913sqtQWiO0GGx6z gVTBhEaa7BzrXOGOeG0/prhvsmHgIjIq74r7AyHokwoa9QpwIsojWjd2pb5DCNcFwbrZ DY4M2BD/Mj/yF1VI8pumVFPyrk7JjiAIQ3JQHbpNzor4qeVQNS+5h0YYj8u11DURUcXH xwvamUx/Uo5WUOw4JGCNThH5eI6J/X5N4X88AK9ApqqKgef86ty/X9zcM7Bqsn4rDQZX oQOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=l3IOAuoR; 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-171128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171128-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 e11-20020a50fb8b000000b00572a745521csi6011439edq.358.2024.05.07.03.46.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:46:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171128-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=l3IOAuoR; 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-171128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171128-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 7E80A1F2577D for ; Tue, 7 May 2024 10:46:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1958D15B992; 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="l3IOAuoR" 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 4E69C152E15; 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=Z47oYswcZysh+ivKX10udSVX3x/GSyt9/1T//nb2zk5W6lJ5AwxM/fS3BUxVIKnMLxjG3ycTR5ejwr00eFkOhdaRjiPSfhXOn+r6zhAPAFDspJVEiao0sPVCyW87NPirG95MiC2fnHwDvoMwxGFeE+K9nzniqKMoTn/qL5NEhS4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078690; c=relaxed/simple; bh=yKV+ra/o9RT6b8lN0TOrWt0cfArneZMIZQPZ6W8+EeQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ueclHdodDBH3mu+kdWpUgOZPI/KiVa0GmKdMuea0tXK3u0TOxWVtzoYayzDXfLyxlE/g3STEnDLXe2b+1ZCyr/akgbDGA0d36TNdDx/xrnF4cRECYC6XrmrVgVBdGLif4RzZXPFIBYP67jlF+EQagvosfPJb1jfVDsNvqjNQ8R4= 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=l3IOAuoR; 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 324CA600B6; 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=yKV+ra/o9RT6b8lN0TOrWt0cfArneZMIZQPZ6W8+EeQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l3IOAuoRpnw//T8YG3NOsMC5/VQ/ZleUrkU+FcyroZ9mBiaG73qyU7T5HZ5Ft0VHn J+3X5CZ2kkBtyUo+7ata5hB7RrehlmSL9Iu4Z670P3gYOS8/FO4YSNQ0J1nFvB+r+8 axE0ezBSAc3GmF3y/YvGlzTrAan6Y6r0OHZ/5dhjknWCORmqtPXNx+G4bCMOEUu9AB rUFIIGO7dl7Uozd7ty3pwTy59HPCbcejQeqnHgLwoX78bS84ZatUgDx6ZIVVs+RClK F1nNRd8aMjnNm9H9Shps9hN0vL6wd/oKh9ZKpvMlW89VnB4W+lg1i2YSmn4sliosVS Jqnkh3I2JLj+g== Received: by x201s (Postfix, from userid 1000) id B679A2034AF; Tue, 07 May 2024 10:44:22 +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 02/14] net: qede: use extack in qede_set_v6_tuple_to_profile() Date: Tue, 7 May 2024 10:44:03 +0000 Message-ID: <20240507104421.1628139-3-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_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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c index 3995baa2daa6..19ffb0823d55 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -1549,7 +1549,7 @@ 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, +static int qede_set_v6_tuple_to_profile(struct netlink_ext_ack *extack, struct qede_arfs_tuple *t, struct in6_addr *zaddr) { @@ -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(NULL, t, &zero_addr); } static int -- 2.43.0