Re: [PATCH net-next v2] tcp: minor optimization in tcp ack fast path processing

From: Eric Dumazet
Date: Sun Nov 11 2018 - 09:34:14 EST




On 11/11/2018 04:10 AM, Yafang Shao wrote:
> 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@xxxxxxxxxxx>
> Suggested-by: Eric Dumazet <edumazet@xxxxxxxxxx>
> Signed-off-by: Yafang Shao <laoar.shao@xxxxxxxxx>

Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Thanks.