mac80211: use the new drop reasons infrastructure
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Apr 2023 12:52:54 +0000 (14:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Apr 2023 03:20:49 +0000 (20:20 -0700)
commitbaa951a1c1771810f3a378a95fc93e81953027d5
tree3724380d8a4b31e1e5083c53134a059982b57c84
parent071c0fc6fb919dcf29c676a842dda08a674877d7
mac80211: use the new drop reasons infrastructure

It can be really hard to analyse or debug why packets are
going missing in mac80211, so add the needed infrastructure
to use use the new per-subsystem drop reasons.

We actually use two drop reason subsystems here because of
the different handling of frames that are dropped but still
go to monitor for old versions of hostapd, and those that
are just completely unusable (e.g. crypto failed.)

Annotate a few reasons here just to illustrate this, we'll
need to go through and annotate more of them later.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dropreason.h
net/mac80211/drop.h [new file with mode: 0644]
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/rx.c
net/mac80211/wpa.c