aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJon Paul Maloy <[email protected]>2015-03-13 20:08:08 +0000
committerDavid S. Miller <[email protected]>2015-03-14 18:38:32 +0000
commitc1336ee472f83a90ede01fdae095ed5d0a2934c9 (patch)
tree4178d007c524fe51262b3698150c63d38591b521 /net/switchdev/switchdev.c
parenttipc: eliminate unnecessary linearization of incoming buffers (diff)
downloadkernel-c1336ee472f83a90ede01fdae095ed5d0a2934c9.tar.gz
kernel-c1336ee472f83a90ede01fdae095ed5d0a2934c9.zip
tipc: extract bundled buffers by cloning instead of copying
When we currently extract a bundled buffer from a message bundle in the function tipc_msg_extract(), we allocate a new buffer and explicitly copy the linear data area. This is unnecessary, since we can just clone the buffer and do skb_pull() on the clone to move the data pointer to the correct position. This is what we do in this commit. Reviewed-by: Erik Hugne <[email protected]> Reviewed-by: Ying Xue <[email protected]> Signed-off-by: Jon Maloy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions