diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2015-03-13 21:08:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-14 19:38:32 +0100 |
commit | c1336ee472f83a90ede01fdae095ed5d0a2934c9 (patch) | |
tree | 4178d007c524fe51262b3698150c63d38591b521 /drivers/edac | |
parent | tipc: eliminate unnecessary linearization of incoming buffers (diff) | |
download | linux-c1336ee472f83a90ede01fdae095ed5d0a2934c9.tar.xz linux-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 <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/edac')
0 files changed, 0 insertions, 0 deletions