summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorLiang Jie <liangjie@lixiang.com>2024-12-30 17:37:09 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-09 13:33:41 +0100
commit05670a893565078ef75eaae6b60b84e540c73952 (patch)
tree72dcb1dba74b979a6eb0c32be47c94674eb1de1c /scripts/patch-kernel
parent127c280067167beb88461cd930f7c7a4bb3c7239 (diff)
downloadlinux-05670a893565078ef75eaae6b60b84e540c73952.tar.gz
linux-05670a893565078ef75eaae6b60b84e540c73952.tar.bz2
linux-05670a893565078ef75eaae6b60b84e540c73952.zip
net: sfc: Correct key_len for efx_tc_ct_zone_ht_params
[ Upstream commit a8620de72e5676993ec3a3b975f7c10908f5f60f ] In efx_tc_ct_zone_ht_params, the key_len was previously set to offsetof(struct efx_tc_ct_zone, linkage). This calculation is incorrect because it includes any padding between the zone field and the linkage field due to structure alignment, which can vary between systems. This patch updates key_len to use sizeof_field(struct efx_tc_ct_zone, zone) , ensuring that the hash table correctly uses the zone as the key. This fix prevents potential hash lookup errors and improves connection tracking reliability. Fixes: c3bb5c6acd4e ("sfc: functions to register for conntrack zone offload") Signed-off-by: Liang Jie <liangjie@lixiang.com> Acked-by: Edward Cree <ecree.xilinx@gmail.com> Link: https://patch.msgid.link/20241230093709.3226854-1-buaajxlj@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions