diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-09-16 15:38:10 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-10-01 10:40:00 -0700 |
| commit | d5590e7e4114253bc5b84b494dba18be24e6073f (patch) | |
| tree | 0d92f8d34c43e021fdeca457c6930878b2808696 /lib/netdev-linux.c | |
| parent | d2805da2cb2256e9e2efc5074fbe8df55408213f (diff) | |
| download | openvswitch-d5590e7e4114253bc5b84b494dba18be24e6073f.tar.gz | |
netdev-linux: Fix off-by-one error dumping queue stats.
Linux kernel queue numbers are one greater than OpenFlow queue numbers, for
HTB anyhow. The code to dump queues wasn't compensating for this, so this
commit fixes it up.
Diffstat (limited to 'lib/netdev-linux.c')
| -rw-r--r-- | lib/netdev-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index e1a3c8c46..2ea411dcd 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -2659,7 +2659,7 @@ htb_class_dump_stats(const struct netdev *netdev OVS_UNUSED, major = tc_get_major(handle); minor = tc_get_minor(handle); if (major == 1 && minor > 0 && minor <= HTB_N_QUEUES) { - (*cb)(tc_get_minor(handle), &stats, aux); + (*cb)(minor - 1, &stats, aux); } return 0; } |
