From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5F72A347FFB for ; Sat, 28 Feb 2026 18:16:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772302581; cv=none; b=NNm/O4ki6gLG4qyHIzuY7e2XVdxkjGe4cO567mrExo5SfCx2FoSqUqxQ7xE31AXgzPdGfQtPXfxd0Ta5rDWWzouoCWQ7NMb0X5ouZOXSo0DWDloK3HHzxh3b8hdd+YCwdRQ9lskMIosvHhwRmXxQPzKbu9HADW8Rf4dlk+EZTfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772302581; c=relaxed/simple; bh=ZvVjOlImDKNJ7wbNYuPrurcz0eviJ2RzrEaNKlO/4s0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mNcKPbEECBhOD3gFNdam2FE58837ayj7VMWOuW5Q7ORxEIhUXOgy+htA4r3GUvzUkKwnClcwtq7Jnp6ZhqhFT+5NtcESq8OTZjpwSxxpET0Ly7crwdC+urrR2fMF0GdTFopNlx/WNI4YeuoibU8pLhqWzw8wiZ5zO4xWxYRoETk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SS4osSqN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SS4osSqN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE7A2C19425; Sat, 28 Feb 2026 18:16:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772302581; bh=ZvVjOlImDKNJ7wbNYuPrurcz0eviJ2RzrEaNKlO/4s0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SS4osSqNMbNBjSr5OUw7F+3LYvGxeLP5y7WYS4BSDa/mNcXysiW09Mk+kZ0natRF7 pia3ncNquoAEOR60plIhJ07oO43yCt33pcB+kOPPV93HBo5JsvOHZYtR8nCDXg4RdR AtXIU4GoupY8G8vZyxK/IPSbRiQ+u3y+0qGc1kTJ9DAQtvwLKAahCImjPelxN8N47z xIrWWTSzazl1elUtbgxKZMcLrOg9G8d4D5cAULatn3TVjfR0EJvJRI/5i+glrWzR+/ La55Gn3mVYEHX9g9eNW2yzn8baxlllRZlU4tt3g2RT7QvAXeZl1AqUFgslAUGxVPUI goh63z2S+RDeA== From: Sasha Levin To: patches@lists.linux.dev Cc: Eric Joyner , Brett Creeley , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.15 089/164] ionic: Rate limit unknown xcvr type messages Date: Sat, 28 Feb 2026 13:13:48 -0500 Message-ID: <20260228181505.1600663-89-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228181505.1600663-1-sashal@kernel.org> References: <20260228181505.1600663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Eric Joyner [ Upstream commit cdb1634de3bf197c0d86487d1fb84c128a79cc7c ] Running ethtool repeatedly with a transceiver unknown to the driver or firmware will cause the driver to spam the kernel logs with "unknown xcvr type" messages which can distract from real issues; and this isn't interesting information outside of debugging. Fix this by rate limiting the output so that there are still notifications but not so many that they flood the log. Using dev_dbg_once() would reduce the number of messages further, but this would miss the case where a different unknown transceiver type is plugged in, and its status is requested. Fixes: 4d03e00a2140 ("ionic: Add initial ethtool support") Signed-off-by: Eric Joyner Reviewed-by: Brett Creeley Link: https://patch.msgid.link/20260206224651.1491-1-eric.joyner@amd.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/pensando/ionic/ionic_ethtool.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c index 8d459d5634160..b14fd0310ed92 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c @@ -222,9 +222,10 @@ static int ionic_get_link_ksettings(struct net_device *netdev, /* This means there's no module plugged in */ break; default: - dev_info(lif->ionic->dev, "unknown xcvr type pid=%d / 0x%x\n", - idev->port_info->status.xcvr.pid, - idev->port_info->status.xcvr.pid); + dev_dbg_ratelimited(lif->ionic->dev, + "unknown xcvr type pid=%d / 0x%x\n", + idev->port_info->status.xcvr.pid, + idev->port_info->status.xcvr.pid); break; } -- 2.51.0