diff options
author | Eric Dumazet <edumazet@google.com> | 2021-10-27 22:19:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-28 13:44:38 +0200 |
commit | f401da475f98c1840d48c9e00a6eb228237357c0 (patch) | |
tree | 384b480e7f297d518dd10a47e7d58e9c161a7e39 /net | |
parent | tcp: remove dead code from tcp_collapse_retrans() (diff) | |
download | linux-f401da475f98c1840d48c9e00a6eb228237357c0.tar.xz linux-f401da475f98c1840d48c9e00a6eb228237357c0.zip |
tcp: no longer set skb->reserved_tailroom
TCP/MPTCP sendmsg() no longer puts payload in skb->head,
we can remove not needed code.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp.c | 5 | ||||
-rw-r--r-- | net/mptcp/protocol.c | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 68b946cfd433..66ed0d79f414 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -876,11 +876,6 @@ struct sk_buff *tcp_stream_alloc_skb(struct sock *sk, int size, gfp_t gfp, } if (likely(mem_scheduled)) { skb_reserve(skb, MAX_TCP_HEADER); - /* - * Make sure that we have exactly size bytes - * available to the caller, no more, no less. - */ - skb->reserved_tailroom = skb->end - skb->tail - size; INIT_LIST_HEAD(&skb->tcp_tsorted_anchor); return skb; } diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 10b336d21865..aa96d311bea0 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -1174,7 +1174,6 @@ static struct sk_buff *__mptcp_do_alloc_tx_skb(struct sock *sk, gfp_t gfp) if (likely(skb)) { if (likely(__mptcp_add_ext(skb, gfp))) { skb_reserve(skb, MAX_TCP_HEADER); - skb->reserved_tailroom = skb->end - skb->tail; INIT_LIST_HEAD(&skb->tcp_tsorted_anchor); return skb; } |