Files
linux-stable-mirror/drivers
Moon YeounsuandGreg Kroah-Hartman 9569e1fd06 net: ethernet: use ip_hdrlen() instead of bit shift
[ Upstream commit 9a039eeb71 ]

`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@gmail.com>
Reviewed-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-18 19:24:05 +02:00
..
2024-08-19 06:04:28 +02:00
2024-09-12 11:11:35 +02:00