summaryrefslogtreecommitdiffstats
path: root/include/net/fq.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-10-06 11:53:32 +0200
committerJohannes Berg <johannes.berg@intel.com>2017-10-11 09:49:34 +0200
commit8c418b5b15747eda05d086e80fa0a767982fbf37 (patch)
tree915d85085318fa6821cee1a7e2cbcced9b9ca7c7 /include/net/fq.h
parent4133da73067af0417c623eb4ad5e85081ccbf4b4 (diff)
downloadlinux-8c418b5b15747eda05d086e80fa0a767982fbf37.tar.bz2
fq: support filtering a given tin
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 <johannes.berg@intel.com> Acked-by: Toke Høiland-Jørgensen <toke@toke.dk> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net/fq.h')
-rw-r--r--include/net/fq.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/fq.h b/include/net/fq.h
index 6d8521a30c5c..ac944a686840 100644
--- a/include/net/fq.h
+++ b/include/net/fq.h
@@ -90,6 +90,13 @@ typedef void fq_skb_free_t(struct fq *,
struct fq_flow *,
struct sk_buff *);
+/* Return %true to filter (drop) the frame. */
+typedef bool fq_skb_filter_t(struct fq *,
+ struct fq_tin *,
+ struct fq_flow *,
+ struct sk_buff *,
+ void *);
+
typedef struct fq_flow *fq_flow_get_default_t(struct fq *,
struct fq_tin *,
int idx,