aboutsummaryrefslogtreecommitdiff
path: root/net/mac80211/drop.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/drop.h')
-rw-r--r--net/mac80211/drop.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/drop.h b/net/mac80211/drop.h
index 49dc809cab29..1570fac8411f 100644
--- a/net/mac80211/drop.h
+++ b/net/mac80211/drop.h
@@ -53,4 +53,7 @@ enum mac80211_drop_reason {
#undef DEF
};
+#define RX_RES_IS_UNUSABLE(result) \
+ (((__force u32)(result) & SKB_DROP_REASON_SUBSYS_MASK) == ___RX_DROP_UNUSABLE)
+
#endif /* MAC80211_DROP_H */