On 8/2/24 16:32, Morten Brørup wrote:
Optimized the performance of updating the statistics counters by reducing
the number of branches.

Ordered the packet size comparisons according to the probability with
typical internet traffic mix.

Signed-off-by: Morten Brørup <m...@smartsharesystems.com>
---
  lib/vhost/virtio_net.c | 40 ++++++++++++++--------------------------
  1 file changed, 14 insertions(+), 26 deletions(-)


Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>

Thanks,
Maxime

Reply via email to