diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2016-03-03 22:23:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-07 07:01:20 +0300 |
commit | e74a386d70c793ef44678b44b021c99094b28c47 (patch) | |
tree | 9aad55ccddd9755bdf9ea80d3e6e3fe01cab505c /net/tipc/net.c | |
parent | 34f65dbb6c7572b826d836d62b99de32ecf2af48 (diff) | |
download | linux-e74a386d70c793ef44678b44b021c99094b28c47.tar.xz |
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>
Diffstat (limited to 'net/tipc/net.c')
-rw-r--r-- | net/tipc/net.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index 77bf9113c7a7..86d68b352bd6 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c @@ -116,7 +116,6 @@ int tipc_net_start(struct net *net, u32 addr) tn->own_addr = addr; tipc_named_reinit(net); tipc_sk_reinit(net); - tipc_bcast_reinit(net); tipc_nametbl_publish(net, TIPC_CFG_SRV, tn->own_addr, tn->own_addr, TIPC_ZONE_SCOPE, 0, tn->own_addr); |