sunvnet: count multicast packets
authorShannon Nelson <shannon.nelson@oracle.com>
Tue, 14 Mar 2017 17:24:42 +0000 (10:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2017 03:29:54 +0000 (20:29 -0700)
Make sure multicast packets get counted in the device.

Orabug: 25190537

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet_common.c

index f8d1cc7e4977cccfb37bf11eeabd505c7e2a7df2..bf7e0fbe5a9dcd217f2882234b92cad1008bda20 100644 (file)
@@ -409,6 +409,8 @@ static int vnet_rx_one(struct vnet_port *port, struct vio_net_desc *desc)
 
        skb->ip_summed = port->switch_port ? CHECKSUM_NONE : CHECKSUM_PARTIAL;
 
+       if (unlikely(is_multicast_ether_addr(eth_hdr(skb)->h_dest)))
+               dev->stats.multicast++;
        dev->stats.rx_packets++;
        dev->stats.rx_bytes += len;
        port->stats.rx_packets++;