]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: minor optimization in tcp ack fast path processing
authorYafang Shao <laoar.shao@gmail.com>
Sun, 11 Nov 2018 12:10:10 +0000 (20:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 18:24:18 +0000 (10:24 -0800)
commitfaebfeff27ece6b2707b8812c76053ca4240a0d0
tree6836047a30acd0c55c00e11d2814b427fadca5a5
parentd92521e05a35aff3bbbe767e56b76fc1d07d6676
tcp: minor optimization in tcp ack fast path processing

Bitwise operation is a little faster.
So I replace after() with using the flag FLAG_SND_UNA_ADVANCED as it is
already set before.

In addtion, there's another similar improvement in tcp_cwnd_reduction().

Cc: Joe Perches <joe@perches.com>
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c