]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
pch_gbe: reprogram multicast address register on reset
authorRongQing.Li <roy.qing.li@gmail.com>
Fri, 27 Apr 2012 19:53:41 +0000 (19:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2012 01:37:27 +0000 (21:37 -0400)
commitd344c4f3103c6faa1635b155d8f516e8a7e0aa4e
treea3384fbfcbc8aebe8065279c5744488ca8b59672
parent1d0c0b328a63826b7c80c27d1c4f2b04e8225273
pch_gbe: reprogram multicast address register on reset

The reset logic after a Rx FIFO overrun will clear the programmed
multicast addresses. This patch fixes the issue by reprogramming the
registers after the reset.

The commit eefc48b ("pch_gbe: reprogram multicast address register on
reset") tried to fix this problem, but it introduces unnecessary
codes. In fact, all multicast addresses have been saved in netdev->mc,
So we can call pch_gbe_set_multi() directly after reset_hw and
reset_rx.

This commit kills 50+ line codes

Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Takahiro Shimizu <tshimizu818@gmail.com>
Signed-off-by: RongQing.Li <roy.qing.li@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c