]> 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)
commitb7fe905917d5ab3ee44eaf681a0142c00ff3019f
tree425e4d253f88dfe91c25fc0debefc7469a199afd
parent006bcb7ef0226071442b4a3528d289ab036f6e1c
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