mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
sun/niu: fix wrong RXMAC_BC_FRM_CNT_COUNT count
[ Upstream commit 155b23e6e5 ]
RXMAC_BC_FRM_CNT_COUNT added to mp->rx_bcasts twice in a row
in niu_xmac_interrupt(). Remove the second addition.
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
81b1a8f144
commit
2d0fba5a2e
@@ -3931,8 +3931,6 @@ static void niu_xmac_interrupt(struct niu *np)
|
||||
mp->rx_mcasts += RXMAC_MC_FRM_CNT_COUNT;
|
||||
if (val & XRXMAC_STATUS_RXBCAST_CNT_EXP)
|
||||
mp->rx_bcasts += RXMAC_BC_FRM_CNT_COUNT;
|
||||
if (val & XRXMAC_STATUS_RXBCAST_CNT_EXP)
|
||||
mp->rx_bcasts += RXMAC_BC_FRM_CNT_COUNT;
|
||||
if (val & XRXMAC_STATUS_RXHIST1_CNT_EXP)
|
||||
mp->rx_hist_cnt1 += RXMAC_HIST_CNT1_COUNT;
|
||||
if (val & XRXMAC_STATUS_RXHIST2_CNT_EXP)
|
||||
|
||||
Reference in New Issue
Block a user