Commit ad51c610 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller

net: systemport: correctly check for RX_STATUS_OVFLOW flag

We were missing an and comparison with status to check whether
RX_STATUS_OVFLOW is asserted or not in the per-packet status word, fix
that.
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d8498088
...@@ -514,7 +514,7 @@ static unsigned int bcm_sysport_desc_rx(struct bcm_sysport_priv *priv, ...@@ -514,7 +514,7 @@ static unsigned int bcm_sysport_desc_rx(struct bcm_sysport_priv *priv,
if (unlikely(status & (RX_STATUS_ERR | RX_STATUS_OVFLOW))) { if (unlikely(status & (RX_STATUS_ERR | RX_STATUS_OVFLOW))) {
netif_err(priv, rx_err, ndev, "error packet\n"); netif_err(priv, rx_err, ndev, "error packet\n");
if (RX_STATUS_OVFLOW) if (status & RX_STATUS_OVFLOW)
ndev->stats.rx_over_errors++; ndev->stats.rx_over_errors++;
ndev->stats.rx_dropped++; ndev->stats.rx_dropped++;
ndev->stats.rx_errors++; ndev->stats.rx_errors++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment