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)
commit2830e314778dc7d0a939befed0910a7622ec5ef0
tree935e10930b3b5331657f1dec1d7bfe041e2b3e7d
parent360f9f3152a909d977173159b302a348f5582631
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