Jon Paul Maloy e74a386d70 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>
2016-03-06 23:01:20 -05:00
..
2015-03-02 16:43:41 -05:00
2015-11-30 14:47:33 -05:00
2016-03-01 17:36:47 -05:00
2015-10-13 17:42:34 +02:00
2016-02-04 18:26:08 +01:00
2016-03-02 15:00:55 -05:00
2015-11-23 14:56:15 -05:00
2016-03-02 15:00:55 -05:00
2016-03-03 17:26:18 -05:00
2015-10-23 03:05:19 -07:00
2016-02-21 22:00:28 -05:00
2016-01-04 21:48:15 -05:00