pinsched: Report queued packet count correctly.
authorBen Pfaff <blp@nicira.com>
Thu, 17 Jul 2014 17:23:52 +0000 (10:23 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Jul 2014 17:23:52 +0000 (10:23 -0700)
commitc946befe2ddccc6b103bc20519999ad1c033806d
treefee3f4d1fee84a31cb6452ee48ba0b7869d70cdf
parent9f90ed907821f0c5e81a28a7a4f31646d6804f87
pinsched: Report queued packet count correctly.

'n_txq' was initialized to 0 and never modified, so pinsched_count_txqlen()
always returned 0.  Instead, return the correct number.

This only affected the results of "ovs-appctl memory/show", and only if
controller rate limiting was turned on, so it is not a serious bug.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Gurucharan Shetty <gshetty@nicira.com>
ofproto/pinsched.c