Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Applied with coding standards fixes:
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
        }
 
        ea = rte_pktmbuf_mtod(mbuf, struct ether_addr *);
-       vq->multicast += is_multicast_ether_addr(ea);
-       vq->broadcast += is_broadcast_ether_addr(ea);
+       if (is_multicast_ether_addr(ea)) {
+               if (is_broadcast_ether_addr(ea))
+                       vq->broadcast++;
+               else
+                       vq->multicast++;
+       }
 }
 
 #define VIRTIO_MBUF_BURST_SZ 64