Re: [PATCH net-next 02/11] udp/ipv6: refactor udpv6_sendmsg udplite checks

From: Paolo Abeni
Date: Thu Apr 28 2022 - 10:09:45 EST


On Thu, 2022-04-28 at 11:56 +0100, Pavel Begunkov wrote:
> Don't save a IS_UDPLITE() result in advance but do when it's really
> needed, so it doesn't store/load it from the stack. Same for resolving
> the getfrag callback pointer.

It's quite unclear to me if this change brings really any performance
benefit. The end results will depend a lot on the optimization
performed by the compiler, and IMHO the code looks better before this
modifications.

Paolo