]> git.proxmox.com Git - ovs.git/commit
dpif-netdev: Calculate rxq cycles prior to compare_rxq_cycles calls.
authorKevin Traynor <ktraynor@redhat.com>
Thu, 23 Nov 2017 19:41:57 +0000 (19:41 +0000)
committerIan Stokes <ian.stokes@intel.com>
Fri, 8 Dec 2017 21:42:54 +0000 (21:42 +0000)
commit8368866efbc8c0a1e5bbb7538e87128b452386cc
treea1b05ae281bcbe6da4c1e449d32f63786d419e09
parentcc131ac1840ebca283e92780588208de6e28079a
dpif-netdev: Calculate rxq cycles prior to compare_rxq_cycles calls.

compare_rxq_cycles sums the latest cycles from each queue for
comparison with each other. While each comparison correctly
gets the latest cycles, the cycles could change between calls
to compare_rxq_cycle. In order to use consistent values through
each call of compare_rxq_cycles, sum the cycles before qsort is
called.

Requested-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/dpif-netdev.c