wifi: mac80211: split mesh fast tx cache into local/proxied/forwarded
authorFelix Fietkau <nbd@nbd.name>
Mon, 15 Apr 2024 12:18:11 +0000 (14:18 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Apr 2024 07:21:32 +0000 (09:21 +0200)
commit8c75cdcdf869acabfdc7858827099dcde9f24e6c
tree91ee775246391aa54e482fc517e6cda7a712a8e6
parentfeafe59c897500e11becd238a30be1c33eb188a2
wifi: mac80211: split mesh fast tx cache into local/proxied/forwarded

Depending on the origin of the packets (and their SA), 802.11 + mesh headers
could be filled in differently. In order to properly deal with that, add a
new field to the lookup key, indicating the type (local, proxied or
forwarded). This can fix spurious packet drop issues that depend on the order
in which nodes/hosts communicate with each other.

Fixes: d5edb9ae8d56 ("wifi: mac80211: mesh fast xmit support")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://msgid.link/20240415121811.13391-1-nbd@nbd.name
[use sizeof_field() for key_len]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c
net/mac80211/mesh.h
net/mac80211/mesh_pathtbl.c
net/mac80211/rx.c