]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: minor optimization in tcp_add_backlog()
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:30 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:34 +0000 (13:10 +0000)
commit89f67e398e7a95a2fe0ff1410f7e8caacf02cd76
treea1259a5aae8cfbf6cab78a59cc1b5056802ac557
parent7e0193560c9c89b25b59bbcecb2110e6ac68005e
tcp: minor optimization in tcp_add_backlog()

If packet is going to be coalesced, sk_sndbuf/sk_rcvbuf values
are not used. Defer their access to the point we need them.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c