Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp467548yba; Wed, 15 May 2019 04:38:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtEKZ6rb+mJ51xrqB/bXwxgDHXwVKeUb7+ixknyrXwSeugRubEJHwCg1pORYVNC6IMY9nG X-Received: by 2002:a62:7d8e:: with SMTP id y136mr24614357pfc.224.1557920303331; Wed, 15 May 2019 04:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920303; cv=none; d=google.com; s=arc-20160816; b=UqH+5kx/6Ro8r6zggqAKFNQidTbuJ4MWAxk9VFmn5QkiwJ5cYzOej6HqJb72by+vOp IXaes6P3/9zKmuaJ9I/GMfF5gzqXyLljJtGCUE+SMkn7QZoxpLfuhyr70j3ux7LDp9Az fQFRY+/gfTv/Qel21+wq0QLGqPej8Ctm3NDFi0OSSR+jCzRwdJ8TkETWVamJJNVjbiQc /v+VJOHDNMa3rRU8IcpcW6m2CNmCgQbHNfm+IR9gjrzVFl4KbS3T3RVhgxe0TtO4kPmu DLjfZ4Fn/1CIrui9ZdB/A663K4aVXGzzFMuj1HRyqCs5oIEkJEYLrcvknRbmYCv6Qz1P tmug== 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=SkCJ08YWOo1A9AyHoEZFMhzeQg87yjr7mpMEnenxb6B/qxyby4lFB21Hhaa8CL0Qjl zJUDDLUOhRLen9qWhVZqu699YhNjcAaq5UVG00Emcy5ZcO9NOjf6D/rgZHi19CZ/jefQ +fsT7oDZn28luZFyE+c9Bb/F2d/LGeIoLVhS0sXOKn+v7Ho+LMZq+zbhxGXmD1yobqFF 9V4zbq7LjvL3ac6OhoAH8dCwwYroh43LJ3GRRLvjGE9U6H+oLG7Jc/GSocw+1Vjw0z0a a4SvJVsEiJbj6P18wGdvuA7Bm1r/BNRbttSKf66e1OWlVP9iZ1JEGrLErbt/EJ9FqxKq 4U+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WMzkXaTK; 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 x32si1649112pld.190.2019.05.15.04.38.08; Wed, 15 May 2019 04:38:23 -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=WMzkXaTK; 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 S1731753AbfEOLgX (ORCPT + 99 others); Wed, 15 May 2019 07:36:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:44484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730842AbfEOLci (ORCPT ); Wed, 15 May 2019 07:32:38 -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 4D2812053B; Wed, 15 May 2019 11:32:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919957; bh=tNIhxY8N0aSxd42ZQzJBvBfueaEFS+wqtYU5w+0ZFnE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WMzkXaTKUUjmqpFsOMW8noY3oSmXK1FfuBP8Mnn0tsKpJDfDpUuHjgk83CyYRQoXx TaU8lnpiOjmRJ26YRUr8rh4KmP/9ULGO1fmCz4QTkB/NBcfIsJW1I8RFIcbEnSqa8Y +UULtyQOo7Dpe7lIHy8fXbiwJmar8Dhe7UVgXnKQ= 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.1 20/46] net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering Date: Wed, 15 May 2019 12:56:44 +0200 Message-Id: <20190515090623.902014753@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090616.670410738@linuxfoundation.org> References: <20190515090616.670410738@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)