OSDN Git Service

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 17:42:43 +0000 (18:42 +0100)
commit33621da4d4ef5901e81b610b2a8ad565ed666035
treea07169401558e68eb015e4da16089ca9b81b5346
parent5d036ccddc5d54e540c0bd4fe4c242f9e0f3aa18
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