Skip to content

Commit 03e2a30

Browse files
committed
esp6: Avoid skb_cow_data whenever possible
This patch tries to avoid skb_cow_data on esp6. On the encrypt side we add the IPsec tailbits to the linear part of the buffer if there is space on it. If there is no space on the linear part, we add a page fragment with the tailbits to the buffer and use separate src and dst scatterlists. On the decrypt side, we leave the buffer as it is if it is not cloned. With this, we can avoid a linearization of the buffer in most of the cases. Joint work with: Sowmini Varadhan <[email protected]> Ilan Tayari <[email protected]> Signed-off-by: Sowmini Varadhan <[email protected]> Signed-off-by: Ilan Tayari <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
1 parent cac2661 commit 03e2a30

File tree

1 file changed

+246
-56
lines changed

1 file changed

+246
-56
lines changed

0 commit comments

Comments
 (0)