[ovs-dev] [ovs-dev, v4] dpif-netdev: Avoid reordering of packets in a batch with same megaflow

Vishal Deep Ajmera vishal.deep.ajmera at ericsson.com
Tue Jul 10 14:48:39 UTC 2018

> This is potentially dangerous from the future modifications and hard to read for
> reviewer/person who tries to understand how it works.
> Current implementation will fail if someone will change the logic of
> The key point is that 'DP_PACKET_BATCH_REFILL_FOR_EACH' and
> 'dp_packet_batch_refill' manipulates with the batch size in a hidden from the
> end user manner. Using of the 'packets_->count' directly requires knowledge of
> how refilling works internally, but these functions was intended to hide internals
> of batch manipulations.
> Also, as I understand, you're storing 'map_cnt' for each missed packet.
> So, why not just use 'n_missed' for that purpose?

map_cnt keeps count of not just the emc miss packet but also all subsequent
packets (with emc hit) after one emc miss.

More information about the dev mailing list