diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2015-02-26 20:33:30 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-04 15:40:54 -0500 |
commit | 25b77ad774a88cd7a9a8f63e122d4bda68479267 (patch) | |
tree | 510ea1fbe4926e729608d0bd432c2c67d97e9e6d /drivers/net/ethernet/renesas | |
parent | 27db730c4f5ed524235b06523f2dae4961d3aa98 (diff) | |
download | op-kernel-dev-25b77ad774a88cd7a9a8f63e122d4bda68479267.zip op-kernel-dev-25b77ad774a88cd7a9a8f63e122d4bda68479267.tar.gz |
sh_eth: Implement multicast statistic based on the RFS8 status bit
At least on the R8A7790, RFS8 reflects the RINT8 (multicast) MAC
status flag.
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/renesas')
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index 736d5d1..8e35ccb 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -1500,6 +1500,8 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota) netif_receive_skb(skb); ndev->stats.rx_packets++; ndev->stats.rx_bytes += pkt_len; + if (desc_status & RD_RFS8) + ndev->stats.multicast++; } entry = (++mdp->cur_rx) % mdp->num_rx_ring; rxdesc = &mdp->rx_ring[entry]; |