aboutsummaryrefslogtreecommitdiffstats
path: root/net/mptcp/protocol.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-10-27 20:19:20 +0000
committerDavid S. Miller <[email protected]>2021-10-28 11:44:38 +0000
commitf401da475f98c1840d48c9e00a6eb228237357c0 (patch)
tree384b480e7f297d518dd10a47e7d58e9c161a7e39 /net/mptcp/protocol.c
parenttcp: remove dead code from tcp_collapse_retrans() (diff)
downloadkernel-f401da475f98c1840d48c9e00a6eb228237357c0.tar.gz
kernel-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/mptcp/protocol.c')
-rw-r--r--net/mptcp/protocol.c1
1 files changed, 0 insertions, 1 deletions
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;
}