Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp433590lqh; Tue, 7 May 2024 03:55:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaBKPX8Q3DJIhXmyUtI0uxzjyInXkm4J85NrETvTzK/VfkCOZ0dIawCuKIICntE3A8xL1iZKXcaqinQq35PqVmKV2sth3nBxUVVyEiNQ== X-Google-Smtp-Source: AGHT+IHHrYji2DcK9Eoa4oxgn71R7fX005iS+uh6eRy0vFpvDyRgEGNzqlNy3FYwo4EaWp3HwN+X X-Received: by 2002:a05:6870:d8cb:b0:23e:5cd0:faae with SMTP id of11-20020a056870d8cb00b0023e5cd0faaemr14425531oac.34.1715079301166; Tue, 07 May 2024 03:55:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715079301; cv=pass; d=google.com; s=arc-20160816; b=KgwtkH1yHxX49qsdYGzAsns+B3SZV5OLri2XC/BD3ecsIdHdvfKg2REv9J4ZW2wviH VSiiKUBv5v3ebIClYS9mtmgVj5az+x5o/XR2rsxZ5d33yPxAFf29/m/JafXLwbN9PLVw M5rDiBX+A+SrE+9SKU0rhl3sdzTD7RCl7yCpLbYsngQs8VortO3jGKUxSSigcwpWMZLx cNgOv800z/lUXRH58CQtSyrwz5hOgNKp+NhErQQBMwNYPqggb+lrFlakkXi/AG5gX8QE 7tzLaPQ7f0npHkvTes1emff7T9/X6zpFWYee2mGvYkL7fssr92qlLkKmhNS1zQ7ISPJm E5vw== 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=KI0f6dEvdOzffXlRPoqIbACUsxDsXA1Zbe/hphXoH0I=; fh=wpGFVURqdBYDJvISrQoODZEHnVcuUZOfUAhWJ5UTCYQ=; b=mmQA0eRNLktcHp3OhIs8l1Z/iRPC2SRGFzwjoLoUQJ8bDWmu9uSVgKSzymgK6IgV88 iOiuFkaiNTG2RjuDPlSVHI4WZXB5OCMlcZod9hJ1DjkgyEiAkSIQhUtoBR+8+KEs2zxZ CUvt2DmlqZCEtItmAZTuire6iJ+omIkrkWLmjrcjF44JWnUvCeWoyD/66WEzjJMfzFfX 5hrN2AxDdk0YvfT+uHTxQJj7w7i5S+C4XvAoal0CLWnmsPnKY3nuA3VsY9VwqweKVOO1 GkGcm0FD72il2IABcirAdu6eLO+PjRJacjzKC026W/VAmPYdrVB+uqyvNljnA4BrGPwq 22Vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fiberby.net header.s=202008 header.b=fNk8CNL1; 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-171125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171125-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 f14-20020a056a00228e00b006f44dffe086si8189250pfe.289.2024.05.07.03.55.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:55:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171125-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=fNk8CNL1; 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-171125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171125-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 DE40328B5B9 for ; Tue, 7 May 2024 10:46:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7A5915B11C; 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="fNk8CNL1" 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 4E6CC152E17; 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=1715078689; cv=none; b=mWbCRHjnYGMzVvK8Z5lEXFPe5Y8k/mQfeUAVQJb/qX1fjKfudVkOGP/Ji910cWzlwEJk7eJMtdQWxNvIKRNQ+jQjx9ziTzk4QbMxz0w+frGyoq9cmZBQGTYomErwi6XVt8GoNPTPV/7OWfmJsckbnP+ZHKMn6psOFWFrKLyTSYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078689; c=relaxed/simple; bh=JfbhjlW1KWkqWGqmmmMWFU0X6uUALH+EM6KsMRvG9vQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PhlB8T2uxPK5zhh6suNxm0DrMWtf2yZSfAbnRwGK4OGo8aPsGHVAtQvyday5u5BCX8NOIwUGanlRfudnDyzOebtFgOy5SaB8SHh5VHzbznvZa9xr+0j/n+g1TCMO/mZMC+mYFOVM8Pi76X3hnSikCKq525O9vz59ZcKOSnhIn7w= 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=fNk8CNL1; 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 4311F600E4; 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=JfbhjlW1KWkqWGqmmmMWFU0X6uUALH+EM6KsMRvG9vQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fNk8CNL1807Ra60OPGQxuklCAUAm6dekJmxkij1kciC0huXY4fT6Q34WKbXIJHHdq Zv4pR/SPAskXRVbWelf+DLyt49iECvFOQTBMkOlk+afU4gmWIEAQxFQeJdl4ZRrAlx l3sFBrlmMXIGE1dtXFvn5VvMBmwhyaUTR2Bkiq3e9qsZcJe5hEu3SElSQrRVYWrY/3 p15kFKgsQCrcCZk6d+FVRQ8G8j05D/cCWw6YeJpCoUmoGw0XJYl+fpJ9Jj5HEYzHwm /nDNqjtZ4S5nftIqbF5scbkVA/YT7MBqkX5xqF9VCRw3WLc+wwVHCbcX8XW85ntvVr qySbNBKOj3mZw== Received: by x201s (Postfix, from userid 1000) id 78A332040FE; Tue, 07 May 2024 10:44:25 +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 14/14] net: qede: use extack in qede_parse_actions() Date: Tue, 7 May 2024 10:44:15 +0000 Message-ID: <20240507104421.1628139-15-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 DP_NOTICE/DP_INFO to NL_SET_ERR_MSG_MOD. Keep edev around for use with QEDE_RSS_COUNT(). Only compile tested. Signed-off-by: Asbjørn Sloth Tønnesen --- drivers/net/ethernet/qlogic/qede/qede_filter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qede/qede_filter.c b/drivers/net/ethernet/qlogic/qede/qede_filter.c index 7789a8b5b065..5a3ce86fba1f 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_filter.c +++ b/drivers/net/ethernet/qlogic/qede/qede_filter.c @@ -1671,7 +1671,7 @@ static int qede_parse_actions(struct qede_dev *edev, int i; if (!flow_action_has_entries(flow_action)) { - DP_NOTICE(edev, "No actions received\n"); + NL_SET_ERR_MSG_MOD(extack, "No actions received"); return -EINVAL; } @@ -1687,7 +1687,8 @@ static int qede_parse_actions(struct qede_dev *edev, break; if (act->queue.index >= QEDE_RSS_COUNT(edev)) { - DP_INFO(edev, "Queue out-of-bounds\n"); + NL_SET_ERR_MSG_MOD(extack, + "Queue out-of-bounds"); return -EINVAL; } break; -- 2.43.0