mirror of
https://github.com/openvswitch/ovs
synced 2025-08-29 13:27:59 +00:00
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 <i.maximets@samsung.com> Signed-off-by: Kevin Traynor <ktraynor@redhat.com> Acked-by: Ciara Loftus <ciara.loftus@intel.com> Signed-off-by: Darrell Ball <dlu998@gmail.com>
This commit is contained in:
parent
45df9fef60
commit
280802762b
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user