Re: [PATCH v3] net: ethernet: use ip_hdrlen() instead of bit shift

From: patchwork-bot+netdevbpf
Date: Sat Aug 10 2024 - 23:52:37 EST


Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Wed, 7 Aug 2024 19:07:21 +0900 you wrote:
> `ip_hdr(skb)->ihl << 2` is the same as `ip_hdrlen(skb)`
> Therefore, we should use a well-defined function not a bit shift
> to find the header length.
>
> It also compresses two lines to a single line.
>
> Signed-off-by: Moon Yeounsu <yyyynoom@xxxxxxxxx>
>
> [...]

Here is the summary with links:
- [v3] net: ethernet: use ip_hdrlen() instead of bit shift
https://git.kernel.org/netdev/net/c/9a039eeb71a4

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html