]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: hint compiler about sack flows
authorEric Dumazet <edumazet@google.com>
Tue, 27 Nov 2018 22:42:00 +0000 (14:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2018 21:26:53 +0000 (13:26 -0800)
commitd2b7e65d8e04eb6311d0486d2b8bfe98af41105a
treeeeda8c5023844b0c4dc1f5bb30fd7d7d94a47448
parentb0fb682cedff4a53f324c071423973af685fb283
tcp: hint compiler about sack flows

Tell the compiler that most TCP flows are using SACK these days.

There is no need to add the unlikely() clause in tcp_is_reno(),
the compiler is able to infer it.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h