summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKevin Traynor <ktraynor@redhat.com>2017-11-23 19:41:56 +0000
committerIan Stokes <ian.stokes@intel.com>2017-12-08 21:42:54 +0000
commitcc131ac1840ebca283e92780588208de6e28079a (patch)
tree3bfc8977a78bd94cc1cd8ad304d9eac5cbd7e084 /lib
parenta130f1a89bd8ec1176ac8d35a98c284a5e3f5691 (diff)
downloadopenvswitch-cc131ac1840ebca283e92780588208de6e28079a.tar.gz
dpif-netdev: Rename rxq_cycle_sort to compare_rxq_cycles.
This function is used for comparison between queues as part of the sort. It does not do the sort itself. As such, give it a more appropriate name. Suggested-by: Billy O'Mahony <billy.o.mahony@intel.com> Signed-off-by: Kevin Traynor <ktraynor@redhat.com> Acked-by: Billy O'Mahony Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/dpif-netdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index b5a1bfec3..f6d0bec24 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -3445,7 +3445,7 @@ rr_numa_list_destroy(struct rr_numa_list *rr)
/* Sort Rx Queues by the processing cycles they are consuming. */
static int
-rxq_cycle_sort(const void *a, const void *b)
+compare_rxq_cycles(const void *a, const void *b)
{
struct dp_netdev_rxq *qa;
struct dp_netdev_rxq *qb;
@@ -3534,7 +3534,7 @@ rxq_scheduling(struct dp_netdev *dp, bool pinned) OVS_REQUIRES(dp->port_mutex)
if (n_rxqs > 1) {
/* Sort the queues in order of the processing cycles
* they consumed during their last pmd interval. */
- qsort(rxqs, n_rxqs, sizeof *rxqs, rxq_cycle_sort);
+ qsort(rxqs, n_rxqs, sizeof *rxqs, compare_rxq_cycles);
}
rr_numa_list_populate(dp, &rr);