Skip to content
Snippets Groups Projects
Commit c0504669 authored by Oskar Viljasaar's avatar Oskar Viljasaar
Browse files

fixup

parent 1853ea3e
No related branches found
No related tags found
No related merge requests found
......@@ -101,13 +101,14 @@ int qosmngr_get_status(struct ubus_context *ctx, struct ubus_object *obj,
if (queue_id == QOS_QUEUE_ANY) {
/* Should we replace this hardcoded limit of 'i' with something like
libqos_get_no_queues(const char *iface), and deal with the number of queues
internally library-side? */
libqos_get_no_queues(const char *iface), and use this to bound the
loop? The library implementations should be in the position to know
how many queues there are. */
for (i=0; i<8; i++) {
ret = qos_get_stats(ifname, i, &stats);
if (ret != 0) {
fprintf(stderr, "blob_get_status: ret %d\n", ret);
fprintf(stderr, "qos_get_stats: ret %d\n", ret);
goto fail_get_status;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment