net: fec: fix multicast filtering hardware setup
authorRui Sousa <rui.sousa@nxp.com>
Mon, 13 Feb 2017 02:01:25 +0000 (10:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2017 21:01:55 +0000 (22:01 +0100)
commitc13a05a8017b01cae73edf90098f1702a5aa1c77
tree1c50549288b43b0453003a75c0bd5a7d06f51220
parenta767c866735c0f23e53aa2a4153c7db76988d230
net: fec: fix multicast filtering hardware setup

[ Upstream commit 01f8902bcf3ff124d0aeb88a774180ebcec20ace ]

Fix hardware setup of multicast address hash:
- Never clear the hardware hash (to avoid packet loss)
- Construct the hash register values in software and then write once
to hardware

Signed-off-by: Rui Sousa <rui.sousa@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/fec_main.c