Re: [PATCH net-next] udp_tunnel: Use flex array to simplify code
From: patchwork-bot+netdevbpf
Date: Tue Oct 03 2023 - 05:50:32 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Sun, 24 Sep 2023 10:03:07 +0200 you wrote:
> 'n_tables' is small, UDP_TUNNEL_NIC_MAX_TABLES = 4 as a maximum. So there
> is no real point to allocate the 'entries' pointers array with a dedicate
> memory allocation.
>
> Using a flexible array for struct udp_tunnel_nic->entries avoids the
> overhead of an additional memory allocation.
>
> [...]
Here is the summary with links:
- [net-next] udp_tunnel: Use flex array to simplify code
https://git.kernel.org/netdev/net-next/c/ef35bed6fad6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html