]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:34 +0000 (16:32 +0200)
commit154be74e589cb8b8e44ceeab3798e072e0a11b9d
tree1cf778792f5ee5164e4a1b0e30d58c35f5f9b9f8
parent1ba4d2adf1aafb3917d4cdec314757e96cbca634
wifi: mac80211: split mesh fast tx cache into local/proxied/forwarded

[ Upstream commit 8c75cdcdf869acabfdc7858827099dcde9f24e6c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mesh.c
net/mac80211/mesh.h
net/mac80211/mesh_pathtbl.c
net/mac80211/rx.c