diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2019-06-25 12:08:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-25 16:40:23 -0400 |
commit | 20c67312946dd0e152f6c65d6fa93c1b0eedcd80 (patch) | |
tree | 7bf66dd17e8cc214fc28c5cae4b475792b17b521 /net/tipc | |
parent | 77cf8edbc0e7db6d68d1a49cf954849fb92cfa7c (diff) |
tipc: eliminate unnecessary skb expansion during retransmission
We increase the allocated headroom for the buffer copies to be
retransmitted. This eliminates the need for the lower stack levels
(UDP/IP/L2) to expand the headroom in order to add their own headers.
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/link.c b/net/tipc/link.c index af50b53e75d9..aa79bf8ac0aa 100644 --- a/net/tipc/link.c +++ b/net/tipc/link.c | |||
@@ -1125,7 +1125,7 @@ static int tipc_link_bc_retrans(struct tipc_link *l, struct tipc_link *r, | |||
1125 | continue; | 1125 | continue; |
1126 | TIPC_SKB_CB(skb)->nxt_retr = jiffies + TIPC_BC_RETR_LIM; | 1126 | TIPC_SKB_CB(skb)->nxt_retr = jiffies + TIPC_BC_RETR_LIM; |
1127 | } | 1127 | } |
1128 | _skb = __pskb_copy(skb, MIN_H_SIZE, GFP_ATOMIC); | 1128 | _skb = __pskb_copy(skb, LL_MAX_HEADER + MIN_H_SIZE, GFP_ATOMIC); |
1129 | if (!_skb) | 1129 | if (!_skb) |
1130 | return 0; | 1130 | return 0; |
1131 | hdr = buf_msg(_skb); | 1131 | hdr = buf_msg(_skb); |