Re: [PATCH v4 net-next 2/3] net/udp: Add 4-tuple hash list basis
From: Paolo Abeni
Date: Mon Oct 14 2024 - 06:07:32 EST
Hi,
On 10/12/24 03:29, Philo Lu wrote:
@@ -3480,13 +3486,14 @@ static struct udp_table __net_init *udp_pernet_table_alloc(unsigned int hash_ent
if (!udptable)
goto out;
- slot_size = sizeof(struct udp_hslot) + sizeof(struct udp_hslot_main);
+ slot_size = 2 * sizeof(struct udp_hslot) + sizeof(struct udp_hslot_main);
udptable->hash = vmalloc_huge(hash_entries * slot_size,
GFP_KERNEL_ACCOUNT);
I'm sorry for the late feedback.
I think it would be better to make the hash4 infra a no op (no lookup,
no additional memory used) for CONFIG_BASE_SMALL=y builds.
It would be great if you could please share some benchmark showing the
raw max receive PPS performances for unconnected sockets, with and
without this series applied, to ensure this does not cause any real
regression for such workloads.
Thanks,
Paolo