]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tipc: remove pre-allocated message header in link struct
authorJon Paul Maloy <jon.maloy@ericsson.com>
Thu, 3 Mar 2016 19:23:21 +0000 (14:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2016 04:01:20 +0000 (23:01 -0500)
commite74a386d70c793ef44678b44b021c99094b28c47
tree9aad55ccddd9755bdf9ea80d3e6e3fe01cab505c
parent34f65dbb6c7572b826d836d62b99de32ecf2af48
tipc: remove pre-allocated message header in link struct

Until now, we have kept a pre-allocated protocol message header
aggregated into struct tipc_link. Apart from adding unnecessary
footprint to the link instances, this requires extra code both to
initialize and re-initialize it.

We now remove this sub-optimization. This change also makes it
possible to clean up the function tipc_build_proto_msg() and remove
a couple of small functions that were accessing the mentioned header.
In particular, we can replace all occurrences of the local function
call link_own_addr(link) with the generic tipc_own_addr(net).

Acked-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>
net/tipc/bcast.c
net/tipc/bcast.h
net/tipc/link.c
net/tipc/link.h
net/tipc/net.c