Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp470120yba; Wed, 15 May 2019 04:41:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqysG3a31fo6hDjjYhS6V1tOLsAz9/po55kZzlojqM2y/4j/zW7wJhx7PKO5WPTJv5KEL8cC X-Received: by 2002:a17:902:a01:: with SMTP id 1mr42976427plo.36.1557920509149; Wed, 15 May 2019 04:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920509; cv=none; d=google.com; s=arc-20160816; b=B3NltVQ3z0Zm/xsJQtEVfyYwSioH8F04IMs7BGUxjRV6nrQThcGhJ2qnWQnuBx+n3Z IKoCRbTeivm5ALx6UXjdcssWSollDUQcm4O1riLIzPv4nrv6JPy2PcjCIPfvt3kJvjw5 IqC2kHRjc8gk0/FXKqYC8U+g7XBUrGKHEXHAGgNP2MuLNAVi+lThA5a+sSi989E+GeYg AUbelOZO3s6RMMlL9OlNnxpLh5tyOq4TPUbaS2kNVWTqpnk9pAP97qbeDBWhg+x/4vx1 QvXUMkrETkt0PPq0mjE6yQgz0S6xBrPsqfyQU6pOq0e26sL5zqkzJ9yDbskG3Md0ybcH owDw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MUjmqvCMrWdJf1B1zEzQCcdvdlvV90tQQNlmUA7CJso=; b=VHZjaL9rAYDXPdOeRXGjrWiW53kiQp03hLpoXGrmikAp0WTcFHT/Nd+nQenGHj/DQM fPb0H9Yj+o6VNvYHBYC96F2xdBVRPnF4Vx7GTY28r7IGAYgbhrroz4E0kDKcvE2RE6bL tmZGZLV0uxwO0KoNHOqUC2y8ZyNYsMRmw7v7I/Bee1tO+cbb0lE2ru9rMKq0YzgJpB9N z3wfiwUAomt99mbu3VgGvBtH+P1u0XOyK3Ayr4R9hLStyjCYvoXKcOXk4rWEWMsXHUIM KxM7VuYy92QQnulO5WvMbh31HJVX8Fj/vlvcO0UZk1onyst/MrbJDbZ33zEG3QQeJNF2 IhgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="qA/BSn+U"; 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 r185si1585741pgr.10.2019.05.15.04.41.34; Wed, 15 May 2019 04:41:49 -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; dkim=pass header.i=@kernel.org header.s=default header.b="qA/BSn+U"; 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 S1732768AbfEOLam (ORCPT + 99 others); Wed, 15 May 2019 07:30:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:42188 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732070AbfEOLah (ORCPT ); Wed, 15 May 2019 07:30:37 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D43622084F; Wed, 15 May 2019 11:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919836; bh=tNIhxY8N0aSxd42ZQzJBvBfueaEFS+wqtYU5w+0ZFnE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qA/BSn+UOKXMeWwfu/PBEz609mKV+BnFZBQPl5k8FtrmGzyY+dJQt9/ZaYY9kSbEw pYzBkPYK64lFD/eVoMIhIXI4KJuSqcHA5kFqeU2tf8j/EomHLdYRJ5RV6Yi7dvZzk5 VirO4ziSQ8ezECpZ0ATZ1PPcYfJA+RKv2mp1zLFA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Corentin Labbe , "David S. Miller" Subject: [PATCH 5.0 111/137] net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering Date: Wed, 15 May 2019 12:56:32 +0200 Message-Id: <20190515090701.648918998@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Corentin Labbe [ Upstream commit d4c26eb6e721683a0f93e346ce55bc8dc3cbb175 ] When adding more MAC addresses to a dwmac-sun8i interface, the device goes directly in promiscuous mode. This is due to IFF_UNICAST_FLT missing flag. So since the hardware support unicast filtering, let's add IFF_UNICAST_FLT. Fixes: 9f93ac8d4085 ("net-next: stmmac: Add dwmac-sun8i") Signed-off-by: Corentin Labbe Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c @@ -1015,6 +1015,8 @@ static struct mac_device_info *sun8i_dwm mac->mac = &sun8i_dwmac_ops; mac->dma = &sun8i_dwmac_dma_ops; + priv->dev->priv_flags |= IFF_UNICAST_FLT; + /* The loopback bit seems to be re-set when link change * Simply mask it each time * Speed 10/100/1000 are set in BIT(2)/BIT(3)