From 280802762b62f14fd813e474c3669b414b1cb2fd Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Fri, 1 Sep 2017 14:03:18 -0700 Subject: [PATCH] dpif-netdev: Fix a couple of coding style issues. A couple of trivial fixes for a ternery operator placement and pointer declaration. Fixes: 655856ef39b9 ("dpif-netdev: Change rxq_scheduling to use rxq processing cycles.") Fixes: a2ac666d5265 ("dpif-netdev: Change definitions of 'idle' & 'processing' cycles") Cc: ciara.loftus@intel.com Reported-by: Ilya Maximets Signed-off-by: Kevin Traynor Acked-by: Ciara Loftus Signed-off-by: Darrell Ball --- lib/dpif-netdev.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index dbdc71fa4..b9014ab72 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -3427,8 +3427,8 @@ rr_numa_list_destroy(struct rr_numa_list *rr) static int rxq_cycle_sort(const void *a, const void *b) { - struct dp_netdev_rxq * qa; - struct dp_netdev_rxq * qb; + struct dp_netdev_rxq *qa; + struct dp_netdev_rxq *qb; uint64_t total_qa, total_qb; unsigned i; @@ -3863,9 +3863,10 @@ dpif_netdev_run(struct dpif *dpif) dp_netdev_process_rxq_port(non_pmd, port->rxqs[i].rx, port->port_no); - cycles_count_intermediate(non_pmd, NULL, process_packets ? - PMD_CYCLES_PROCESSING - : PMD_CYCLES_IDLE); + cycles_count_intermediate(non_pmd, NULL, + process_packets + ? PMD_CYCLES_PROCESSING + : PMD_CYCLES_IDLE); } } }