esp4: Avoid skb_cow_data whenever possible
This patch tries to avoid skb_cow_data on esp4. 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 <sowmini.varadhan@oracle.com> Ilan Tayari <ilant@mellanox.com> Signed-off-by:Sowmini Varadhan <sowmini.varadhan@oracle.com> Signed-off-by:
Ilan Tayari <ilant@mellanox.com> Signed-off-by:
Steffen Klassert <steffen.klassert@secunet.com>
parent
726282aa
-
mentioned in commit a9c16745
-
mentioned in commit d4ede0a4
-
mentioned in commit 814e0477
-
mentioned in commit ebe48d36
-
mentioned in commit 4aaabbff
-
mentioned in commit 9248694d
-
mentioned in commit 2c8abafd
-
mentioned in commit ce890879
-
mentioned in commit fee4dfbd
-
mentioned in commit 5bd8baab
-
mentioned in commit c075c3ea
-
mentioned in commit a583f2f3
-
mentioned in commit 2c66b0c9
-
mentioned in commit ef6f83df
-
mentioned in commit 3defefd2
Please register or sign in to comment