/*
- * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/* One queue per physical port. */
struct hmap queues; /* Contains "struct pinqueue"s. */
- int n_queued; /* Sum over queues[*].n. */
+ unsigned int n_queued; /* Sum over queues[*].n. */
struct pinqueue *next_txq; /* Next pinqueue check in round-robin. */
- /* Transmission queue. */
- int n_txq; /* No. of packets waiting in rconn for tx. */
-
/* Statistics reporting. */
unsigned long long n_normal; /* # txed w/o rate limit queuing. */
unsigned long long n_limited; /* # queued for rate limiting. */
hmap_init(&ps->queues);
ps->n_queued = 0;
ps->next_txq = NULL;
- ps->n_txq = 0;
ps->n_normal = 0;
ps->n_limited = 0;
ps->n_queue_dropped = 0;
unsigned int
pinsched_count_txqlen(const struct pinsched *ps)
{
- return ps ? ps->n_txq : 0;
+ return ps ? ps->n_queued : 0;
}