]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Allow concurrent monitor iface and ethernet rx decap
authorSriram R <srirrama@codeaurora.org>
Tue, 30 Mar 2021 01:35:16 +0000 (07:05 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 13:21:05 +0000 (15:21 +0200)
commitcdcf570d6b326188af6b248369aed5595758deb7
tree8d777ad7f6cd586022da0b16527f6856e486fbe4
parent403d5bcdfd65e0a583a44b72457e1cc09fb33bf5
mac80211: Allow concurrent monitor iface and ethernet rx decap

Some HW/driver can support passing ethernet rx decap frames and
raw 802.11 frames for the monitor interface concurrently and
via separate RX calls to mac80211. Packets going to the monitor
interface(s) would be in 802.11 format and thus not have the
RX_FLAG_8023 set, and 802.11 format monitoring frames should have
RX_FLAG_ONLY_MONITOR set.

Drivers doing such can enable the SUPPORTS_CONC_MON_RX_DECAP to
allow using ethernet decap offload while a monitor interface is
active, currently RX decapsulation offload gets disabled when a
monitor interface is added.

Signed-off-by: Sriram R <srirrama@codeaurora.org>
Link: https://lore.kernel.org/r/1617068116-32253-1-git-send-email-srirrama@codeaurora.org
[add proper documentation, rewrite commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/debugfs.c
net/mac80211/iface.c