]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk-ppe: fix traffic offload with bridged wlan
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 22 Jul 2022 07:06:19 +0000 (09:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2022 13:04:58 +0000 (14:04 +0100)
commitf5cf3dde6c43da44ab50dcda2d833efe84f84243
tree935e10930b3b5331657f1dec1d7bfe041e2b3e7d
parentf33f575bf54d0aae77b5f8caa7151d7e0a6fcd79
net: ethernet: mtk-ppe: fix traffic offload with bridged wlan

A typical flow offload scenario for OpenWrt users is routed traffic
received by the wan interface that is redirected to a wlan device
belonging to the lan bridge. Current implementation fails to
fill wdma offload info in mtk_flow_get_wdma_info() since odev device is
the local bridge. Fix the issue running dev_fill_forward_path routine in
mtk_flow_get_wdma_info in order to identify the wlan device.

Tested-by: Paolo Valerio <pvalerio@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_ppe_offload.c