]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: remove loop to compute wscale
authorEric Dumazet <edumazet@google.com>
Thu, 29 Nov 2018 15:56:20 +0000 (07:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Nov 2018 19:10:14 +0000 (11:10 -0800)
commit7edd220eca386194c52c6a4e81322f12a6c676c2
tree7a48396a78634310d66e156caf70a5ef61451ad5
parentbf6bb0f98acbd3f07c17b684342faa336c27e072
tcp: remove loop to compute wscale

We can remove the loop and conditional branches
and compute wscale efficiently thanks to ilog2()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c