From: "Toke Høiland-Jørgensen" <toke@toke.dk>
To: Johannes Berg <johannes@sipsolutions.net>,
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 14:24:06 +0200 [thread overview]
Message-ID: <87k209sryx.fsf@toke.dk> (raw)
In-Reply-To: <20171005113808.3889-1-johannes@sipsolutions.net>
Johannes Berg <johannes@sipsolutions.net> writes:
> +static void fq_tin_filter(struct fq *fq,
> + struct fq_tin *tin,
> + fq_skb_filter_t filter_func,
> + void *filter_data,
> + fq_skb_free_t free_func)
> +{
> + struct list_head *head;
> + struct fq_flow *flow;
> +
> + lockdep_assert_held(&fq->lock);
> +
> + 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?
-Toke
next prev parent reply other threads:[~2017-10-05 12:24 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 ` Toke Høiland-Jørgensen [this message]
2017-10-05 13:13 ` [RFC 1/2] fq: support filtering a given tin Johannes Berg
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=87k209sryx.fsf@toke.dk \
--to=toke@toke.dk \
--cc=johannes.berg@intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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.