]> git.proxmox.com Git - ovs.git/commit
flow: Wildcard UDP ports when using SYMMETRIC_L4 hash for select groups.
authorVishal Deep Ajmera <vishal.deep.ajmera@ericsson.com>
Wed, 10 Jul 2019 13:32:30 +0000 (19:02 +0530)
committerBen Pfaff <blp@ovn.org>
Tue, 16 Jul 2019 22:21:45 +0000 (15:21 -0700)
commitcbbab701276a0400a30275fdbd28bafb4d25b468
treefacf0d29d64b0b34788af63742bf2becd274445a
parent605535f9adf2e881aa6242b19bcec0c90ba8ad96
flow: Wildcard UDP ports when using SYMMETRIC_L4 hash for select groups.

UDP source and destination ports are not used to derive the hash index
used for selecting the bucket in case of SYMMETRIC_L4 hash based select
groups. However, they are un-wildcarded in the megaflow entry match criteria.
This results in distinct megaflow entry being created for each pair of UDP
source and destination ports unnecessarily and causes significant performance
deterioration when the megaflow cache limit is reached.

This patch wildcards UDP ports when using select group with SYMMETRIC_L4
hash function.

Signed-off-by: Vishal Deep Ajmera <vishal.deep.ajmera@ericsson.com>
CC: Jan Scheurich <jan.scheurich@ericsson.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/flow.c