Re: [RFC 1/2] fq: support filtering a given tin

2017-10-05 Thread Johannes Berg
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; >

Re: [RFC 1/2] fq: support filtering a given tin

2017-10-05 Thread Toke Høiland-Jørgensen
Johannes Berg 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 *hea

[RFC 1/2] fq: support filtering a given tin

2017-10-05 Thread Johannes Berg
From: Johannes Berg Add to the FQ API a way to filter a given tin, in order to remove frames that fulfil certain criteria according to a filter function. This will be used by mac80211 to remove frames belonging to an AP VLAN interface that's being removed. Signed-off-by: Johannes Berg --- inc