net: ethernet: mediatek: fix typo in offload code
Subsystems (4)
PATCH 1/1 net: ethernet: mediatek: fix typo in offload code
.key_offset was assigned to .head_offset instead. Fix the typo.
Fixes 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support")
Signed-off-by DENG Qingfang <[email protected]>
--- 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
Am 15. April 2021 11:40:05 MESZ schrieb DENG Qingfang <[email protected]>:
Quoted 5 lines
.key_offset was assigned to .head_offset instead. Fix the typo.
Fixes 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloadingsupport")
Signed-off-by DENG Qingfang <[email protected]>
Thanks for posting the fix,but imho commit-message is not good.
Issue were 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 and head_offset was defined twice. regards Frank