commit | 4e485d06bb8c7811a0d69a811c77befd54b9ab0c | [log] [tgz] |
---|---|---|
author | Vakul Garg <vakul.garg@nxp.com> | Sat Jun 30 00:45:55 2018 +0530 |
committer | David S. Miller <davem@davemloft.net> | Sat Jun 30 21:25:39 2018 +0900 |
tree | 83739c15a00c922f1b44e901cef4db7423302e0a | |
parent | 180390c470e1b6e3e19b4f969524182eeb5e4e6c [diff] |
strparser: Call skb_unclone conditionally Calling skb_unclone() is expensive as it triggers a memcpy operation. Instead of calling skb_unclone() unconditionally, call it only when skb has a shared frag_list. This improves tls rx throughout significantly. Signed-off-by: Vakul Garg <vakul.garg@nxp.com> Suggested-by: Boris Pismenny <borisp@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>