sunvnet: count multicast packets
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>
This commit is contained in:
parent
e1f1e5f711
commit
b12a96f5cd
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue