]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: fix multicast filtering hardware setup
authorRui Sousa <rui.sousa@nxp.com>
Mon, 13 Feb 2017 02:01:25 +0000 (10:01 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2017 17:15:34 +0000 (12:15 -0500)
commit83fb7363516e229a89efb1e40076d7643d472f35
tree8bdfaaf59fc8014d67e942da914acb283b07309a
parent42ccd7d05773203f6ddd73b00b23d41c137792b6
net: fec: fix multicast filtering hardware setup

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>
drivers/net/ethernet/freescale/fec_main.c