2021-04-20 01:25:27 +00:00
|
|
|
From 6ecaf81d4ac6365f9284f9d68d74f7c209e74f98 Mon Sep 17 00:00:00 2001
|
2021-04-15 19:24:23 +00:00
|
|
|
From: DENG Qingfang <dqfext@gmail.com>
|
2021-04-20 01:25:27 +00:00
|
|
|
Date: Sat, 17 Apr 2021 15:29:04 +0800
|
|
|
|
Subject: [PATCH] net: ethernet: mediatek: fix a typo bug in flow offloading
|
2021-04-15 19:24:23 +00:00
|
|
|
|
2021-04-20 01:25:27 +00:00
|
|
|
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.
|
2021-04-15 19:24:23 +00:00
|
|
|
|
|
|
|
Fixes: 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support")
|
|
|
|
Signed-off-by: DENG Qingfang <dqfext@gmail.com>
|
2021-04-20 01:25:27 +00:00
|
|
|
Tested-by: Frank Wunderlich <frank-w@public-files.de>
|
|
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
2021-04-15 19:24:23 +00:00
|
|
|
---
|
|
|
|
drivers/net/ethernet/mediatek/mtk_ppe_offload.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
|
|
|
|
+++ b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
|
|
|
|
@@ -44,7 +44,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,
|
|
|
|
};
|