Files
linux/include/net
Eric Dumazet b709857ecb ipv6: fix _DEVADD() and _DEVUPD() macros
ip6_rcv_core() is using:

	__IP6_ADD_STATS(net, idev,
			IPSTATS_MIB_NOECTPKTS +
				(ipv6_get_dsfield(hdr) & INET_ECN_MASK),
			max_t(unsigned short, 1, skb_shinfo(skb)->gso_segs));

This is currently evaluating both expressions twice.

Fix _DEVADD() and _DEVUPD() macros to evaluate their arguments once.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250319212516.2385451-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-03-25 07:31:24 -07:00
..
2024-12-09 14:44:59 -08:00
2025-01-20 12:16:04 -08:00
2025-01-06 15:57:01 -08:00
2025-01-16 13:04:58 -08:00
2024-12-09 14:44:59 -08:00
2024-11-13 18:49:50 -08:00
2024-12-06 17:43:08 -08:00
2025-02-06 16:27:30 -08:00
2025-03-03 17:16:34 -08:00
2025-01-29 13:32:08 -08:00
2025-02-27 14:03:52 +01:00