Re: [PATCH] x86_64: inline csum_ipv6_magic()

From: Eric Dumazet

Date: Tue Dec 23 2025 - 00:03:45 EST


On Thu, Nov 13, 2025 at 7:40 PM Dave Hansen <dave.hansen@xxxxxxxxx> wrote:
>
> On 11/13/25 10:18, Eric Dumazet wrote:
> > So it would seem the patch saves 371 bytes for this config.
> >
> >> Or, is there a discrete, measurable performance gain from doing this?
> > IPv6 incoming TCP/UDP paths call this function twice per packet, which is sad...
> > One call per TX packet.
> >
> > Depending on the cpus I can see csum_ipv6_magic() using up to 0.75 %
> > of cpu cycles.
> > Then there is the cost in the callers, harder to measure...
>
> Oh, wow. That's more than I was expecting. But it does make sense.
> Thanks for the info. I'll stick this in the queue to apply in a month or
> so after the next -rc1, unless it needs more urgency.
>
> Acked-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>

Gentle ping, I have not seen this patch reaching the tip tree.

Thanks a lot !