Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1739382ybg; Sat, 19 Oct 2019 01:27:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyB+5aZ0/oX6oWjMPg0JUJU4qlCXp+yz4V52ITjRoHL/0RWF+wgVu742Jj7lQqHjW22CI4B X-Received: by 2002:a17:907:36e:: with SMTP id rs14mr12657301ejb.280.1571473661902; Sat, 19 Oct 2019 01:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473661; cv=none; d=google.com; s=arc-20160816; b=j1yF6kwelxl/K3LylIRjKtyxaxDALeVB3Fui+p8CeZ1dHTOTnS2OgL+aKVd3noj4tL 8gdh1jXKvybN+1lG7L/JkNY/JySHwhEqkcVnIsFHgy5Zb+yhQabnZY7vh9H7hDMX717g A464dXNjLwUIOCqHW6sn5bl8ORENyBRcLbiP1lUtctOfMhNbD+cNSHejoa7mlB5ZvtKQ Lp9Mk3dXO7Fmmp7afIngyOd81f7PCiHwSfJ9JUWecfs8nGhrqybApmm8EtilLVZtoLPE B68ZlaaQ67cRavOwg8xjZbkoqjwpW3dWbdZdOt8yJLh1aJrJXShSBEnPFbU0Pl6Cm5rU Dlzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=1KRkMS5xbFvTeVHA70bfKobAwdgCmqKqIwo6n9e0d+A=; b=RQn3QrtvRqZhPnr9ejeox88bGc8bQk5r21gFkcRGzHjD9vwI+ir7qXkk6wkXgWKsTD N47TmEnt9tYNsA15sQnYagul/Xo6fgSPKRdA2JkjsWNC+xMM26GD/YsJ2ndaf6zHzdS6 vc8a3tAvWqs6Le7RYtEmPk2qtKZumaEaR5QnJkpjFf3u5Eol00eT9N+LV2cGS82s3ilk 9XIZu3VGHG/SUHjvoa6qAI7oP8fDbHrQw9vvlH49uTRnmnKZ9GqE4I+V5fw27AGO5fO7 nLDZS5rlr4XC1LUta3WeLSahSmwfodB6qWpFKqHPnxYdd5MNzvoQd35y2WqI3iH+Ydjl tuug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ox13si4836978ejb.0.2019.10.19.01.27.19; Sat, 19 Oct 2019 01:27:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633800AbfJROF1 (ORCPT + 99 others); Fri, 18 Oct 2019 10:05:27 -0400 Received: from unicorn.mansr.com ([81.2.72.234]:51150 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408654AbfJROF1 (ORCPT ); Fri, 18 Oct 2019 10:05:27 -0400 Received: by unicorn.mansr.com (Postfix, from userid 51770) id A8DB71560D; Fri, 18 Oct 2019 15:05:19 +0100 (BST) From: Mans Rullgard To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu Cc: "David S. Miller" , Maxime Ripard , Chen-Yu Tsai , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ethernet: dwmac-sun8i: show message only when switching to promisc Date: Fri, 18 Oct 2019 15:05:14 +0100 Message-Id: <20191018140514.21454-1-mans@mansr.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Printing the info message every time more than the max number of mac addresses are requested generates unnecessary log spam. Showing it only when the hw is not already in promiscous mode is equally informative without being annoying. Signed-off-by: Mans Rullgard --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c index 79c91526f3ec..5be2de1f1179 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c @@ -646,7 +646,8 @@ static void sun8i_dwmac_set_filter(struct mac_device_info *hw, } } } else { - netdev_info(dev, "Too many address, switching to promiscuous\n"); + if (readl(ioaddr + EMAC_RX_FRM_FLT) != EMAC_FRM_FLT_RXALL) + netdev_info(dev, "Too many address, switching to promiscuous\n"); v = EMAC_FRM_FLT_RXALL; } -- 2.23.0