From: Simon Horman <horms@kernel.org>
To: Eric Dumazet <edumazet@google.com>
Cc: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, eric.dumazet@gmail.com,
Mahesh Bandewar <maheshb@google.com>
Subject: Re: [PATCH v2 net-next] ipvlan: remove ipvlan_ht_addr_lookup()
Date: Fri, 23 Jan 2026 20:14:44 +0000 [thread overview]
Message-ID: <aXPWtCFRgNZuO1K4@horms.kernel.org> (raw)
In-Reply-To: <20260122165049.2366985-1-edumazet@google.com>
On Thu, Jan 22, 2026 at 04:50:49PM +0000, Eric Dumazet wrote:
> ipvlan_ht_addr_lookup() is called four times and not inlined.
>
> Split it to ipvlan_ht_addr_lookup6() and ipvlan_ht_addr_lookup4()
> and rework ipvlan_addr_lookup() to call these helpers once,
> so that they are (auto)inlined.
>
> After this change, ipvlan_addr_lookup() is faster, and we save
> 350 bytes of text on x86_64.
>
> $ scripts/bloat-o-meter -t vmlinux.old vmlinux.new
> add/remove: 0/2 grow/shrink: 1/0 up/down: 123/-473 (-350)
> Function old new delta
> ipvlan_addr_lookup 467 590 +123
> __pfx_ipvlan_ht_addr_lookup 16 - -16
> ipvlan_ht_addr_lookup 457 - -457
> Total: Before=22571833, After=22571483, chg -0.00%
>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> Cc: Mahesh Bandewar <maheshb@google.com>
> ---
> v2: guard ipvlan_ht_addr_lookup6() with CONFIG_IPV6 (kernel test robot)
> v1: https://lore.kernel.org/netdev/20260121215728.560645-1-edumazet@google.com/
> drivers/net/ipvlan/ipvlan_core.c | 55 ++++++++++++++++++++------------
> 1 file changed, 34 insertions(+), 21 deletions(-)
Reviewed-by: Simon Horman <horms@kernel.org>
next prev parent reply other threads:[~2026-01-23 20:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 16:50 [PATCH v2 net-next] ipvlan: remove ipvlan_ht_addr_lookup() Eric Dumazet
2026-01-23 20:14 ` Simon Horman [this message]
2026-01-25 22:40 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aXPWtCFRgNZuO1K4@horms.kernel.org \
--to=horms@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=kuba@kernel.org \
--cc=maheshb@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.