net: ethernet: mediatek: fix a typo bug in flow offloading
Subsystems (4)
PATCH v2 1/1 net: ethernet: mediatek: fix a typo bug in flow offloading
Issue was traffic problems after a while with increased ping times if flow offload is active. It turns out that key_offset with cookie is needed in rhashtable_params but was re-assigned to head_offset. Fix the assignment.
---
v1 -> v2:
Refined commit message according to Frank.
drivers/net/ethernet/mediatek/mtk_ppe_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mediatek/mtk_ppe_offload.c +1 -1
@@ -43,7 +43,7 @@ struct mtk_flow_entry {static const struct rhashtable_params mtk_flow_ht_params = { .head_offset = offsetof(struct mtk_flow_entry , node), - .head_offset = offsetof(struct mtk_flow_entry , cookie), + .key_offset = offsetof(struct mtk_flow_entry , cookie), .key_len =sizeof (unsigned long ), .automatic_shrinking = true, };
Signature · 1 line
2.25.1
Tested on Bananapi-r2 (please see my mt7623 patch for supporting offloading) with ~300 iperf3 iterations and uptime >6h
regards Frank
This patch was applied to netdev/net-next.git (refs/heads/master):
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
Quoted 9 lines · On Sat, 17 Apr 2021 15:29:04 +0800 you wrote:
Issue was traffic problems after a while with increased ping times if flow offload is active. It turns out that
key_offsetwith cookie is needed inrhashtable_paramsbut was re-assigned tohead_offset. Fix the assignment.Fixes 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support")Signed-off-by DENG Qingfang <[email protected]>[...]
Here is the summary with links:
- [v2,net-next] net: ethernet: mediatek: fix a typo bug in flow offloading
https://git.kernel.org/netdev/net-next/c/6ecaf81d4ac6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html