From: Johannes Berg <johannes@sipsolutions.net>
To: "Toke Høiland-Jørgensen" <toke@toke.dk>, linux-wireless@vger.kernel.org
Cc: Johannes Berg <johannes.berg@intel.com>
Subject: Re: [RFC 1/2] fq: support filtering a given tin
Date: Thu, 05 Oct 2017 15:13:11 +0200 [thread overview]
Message-ID: <1507209191.2387.22.camel@sipsolutions.net> (raw)
In-Reply-To: <87k209sryx.fsf@toke.dk>
On Thu, 2017-10-05 at 14:24 +0200, Toke Høiland-Jørgensen wrote:
> > + for (;;) {
> > + head = &tin->new_flows;
> > + if (list_empty(head)) {
> > + head = &tin->old_flows;
> > + if (list_empty(head))
> > + break;
> > + }
> > +
> > + flow = list_first_entry(head, struct fq_flow, flowchain);
> > + fq_flow_filter(fq, flow, filter_func, filter_data, free_func);
> > + }
>
> Isn't this going to loop forever?
Good question, I'll admit that I copied this without understanding it
from fq_tin_reset(), and didn't think about it much.
I think you're right though - I guess this needs to iterate the
new_flows and old_flows.
johannes
prev parent reply other threads:[~2017-10-05 13:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-05 11:38 [RFC 1/2] fq: support filtering a given tin Johannes Berg
2017-10-05 11:38 ` [RFC 2/2] mac80211: only remove AP VLAN frames from TXQ Johannes Berg
2017-10-05 12:24 ` [RFC 1/2] fq: support filtering a given tin Toke Høiland-Jørgensen
2017-10-05 13:13 ` Johannes Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1507209191.2387.22.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=johannes.berg@intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=toke@toke.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.