summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2025-03-20 00:25:16 +0300
committerJakub Kicinski <kuba@kernel.org>2025-03-25 17:31:24 +0300
commitb709857ecbf511bb25603790ff9c3f12abe36559 (patch)
tree110268c875534b5d4826b6919299e41b2f7cdfba /tools/perf/scripts/python
parent4a5524a2f7607c323229bdc69b12cac96546ecae (diff)
downloadlinux-b709857ecbf511bb25603790ff9c3f12abe36559.tar.xz
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions