diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-07-16 15:47:23 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-07-20 11:26:58 -0700 |
| commit | 3c4de644d21853f1bdde18e0a6b0a33033282854 (patch) | |
| tree | 5b12607e77783319f9a19b42b6c60a9af7aa0edf /lib/netdev-linux.c | |
| parent | 5b3941ee1797172ee1f349d6a03e3914217ce890 (diff) | |
| download | openvswitch-3c4de644d21853f1bdde18e0a6b0a33033282854.tar.gz | |
netdev-linux: Dump all queues, not just direct children of the root.
A netdev-linux traffic control implementation has to dump all of a port's
traffic classes in a couple of different situations. start_queue_dump()
is supposed to do that. But it was specifying TC_H_ROOT as tcm_parent,
which only dumped classes that were direct children of the root. This
commit changes tcm_parent to 0, which obtains all traffic classes
regardless of parent.
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 8cd40cd2f..bcba1a237 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -1625,7 +1625,7 @@ start_queue_dump(const struct netdev *netdev, struct nl_dump *dump) struct tcmsg *tcmsg; tcmsg = tc_make_request(netdev, RTM_GETTCLASS, 0, &request); - tcmsg->tcm_parent = TC_H_ROOT; + tcmsg->tcm_parent = 0; nl_dump_start(dump, rtnl_sock, &request); ofpbuf_uninit(&request); } |
