diff options
| author | Eric Dumazet <[email protected]> | 2025-03-19 21:25:16 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-25 14:31:24 +0000 |
| commit | b709857ecbf511bb25603790ff9c3f12abe36559 (patch) | |
| tree | 110268c875534b5d4826b6919299e41b2f7cdfba /net/ipv4/tcp.c | |
| parent | Merge branch 'mlx5-misc-enhancements-2025-03-19' (diff) | |
| download | kernel-b709857ecbf511bb25603790ff9c3f12abe36559.tar.gz kernel-b709857ecbf511bb25603790ff9c3f12abe36559.zip | |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp.c')
0 files changed, 0 insertions, 0 deletions
