diff options
author | Toke Høiland-Jørgensen <[email protected]> | 2020-12-11 15:26:38 +0100 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2020-12-14 18:38:58 -0800 |
commit | 0780b4145634c3e8d69905dc5d2695d1207130df (patch) | |
tree | ee37706a2c35ef87ce0dc6f4f6b6f58c98489a53 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 989a1db06eb18ff605377eec87e18d795e0ec74b (diff) |
inet_ecn: Use csum16_add() helper for IP_ECN_set_* helpers
Jakub pointed out that the IP_ECN_set* helpers basically open-code
csum16_add(), so let's switch them over to using the helper instead.
v2:
- Use __be16 for check_add stack variable in IP_ECN_set_ce() (kbot)
v3:
- Turns out we need __force casts to do arithmetic on __be16 types
Reported-by: Jakub Kicinski <[email protected]>
Tested-by: Jonathan Morton <[email protected]>
Tested-by: Pete Heist <[email protected]>
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions