]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 13 May 2019 13:06:39 +0000 (13:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:40:28 +0000 (19:40 +0200)
commita3bf31d7ffb276e6c6fbd0f51ca8a80dcb5d1b2e
tree3efe8955a820df6ab348aeadbf9fe4a02d74f11b
parent261a8958a57e3f9e0bd9c0cf7d7b637b2cb8def9
net: ethernet: stmmac: dwmac-sun8i: enable support of unicast filtering

[ 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 <clabbe@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c