Re: [PATCH net-next v3] inet_ecn: Use csum16_add() helper for IP_ECN_set_* helpers

2020-12-14 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Fri, 11 Dec 2020 15:26:38 +0100 you wrote: > 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

[PATCH net-next v3] inet_ecn: Use csum16_add() helper for IP_ECN_set_* helpers

2020-12-11 Thread Toke Høiland-Jørgensen
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