kernel/generic: add missing config symbol
[openwrt/openwrt.git] / target / linux / generic / pending-5.10 / 615-net-ethernet-mediatek-fix-typo-in-offload-code.patch
1 From ec21551331bc071ed43c814265f014029fa5f95f Mon Sep 17 00:00:00 2001
2 From: DENG Qingfang <dqfext@gmail.com>
3 Date: Thu, 15 Apr 2021 17:40:05 +0800
4 Subject: [PATCH] net: ethernet: mediatek: fix typo in offload code
5
6 .key_offset was assigned to .head_offset instead. Fix the typo.
7
8 Fixes: 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support")
9 Signed-off-by: DENG Qingfang <dqfext@gmail.com>
10 ---
11 drivers/net/ethernet/mediatek/mtk_ppe_offload.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
15 +++ b/drivers/net/ethernet/mediatek/mtk_ppe_offload.c
16 @@ -44,7 +44,7 @@ struct mtk_flow_entry {
17
18 static const struct rhashtable_params mtk_flow_ht_params = {
19 .head_offset = offsetof(struct mtk_flow_entry, node),
20 - .head_offset = offsetof(struct mtk_flow_entry, cookie),
21 + .key_offset = offsetof(struct mtk_flow_entry, cookie),
22 .key_len = sizeof(unsigned long),
23 .automatic_shrinking = true,
24 };