]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: cache line align MAX_TCP_HEADER
authorEric Dumazet <edumazet@google.com>
Fri, 17 Apr 2020 14:10:23 +0000 (07:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Apr 2020 22:47:28 +0000 (15:47 -0700)
commit7bb378d00c3fa0592bb17f63e15a9ddaa7da6a22
tree425e4d253f88dfe91c25fc0debefc7469a199afd
parent978300cabf800a3d76f57964de29f7e6f40c068f
tcp: cache line align MAX_TCP_HEADER

TCP stack is dumb in how it cooks its output packets.

Depending on MAX_HEADER value, we might chose a bad ending point
for the headers.

If we align the end of TCP headers to cache line boundary, we
make sure to always use the smallest number of cache lines,
which always help.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h