tipc: make link implementation independent from struct tipc_bearer
In reality, the link implementation is already independent from struct tipc_bearer, in that it doesn't store any reference to it. However, we still pass on a pointer to a bearer instance in the function tipc_link_create(), just to have it extract some initialization information from it. I later commits, we need to create instances of tipc_link without having any associated struct tipc_bearer. To facilitate this, we want to extract the initialization data already in the creator function in node.c, before calling tipc_link_create(), and pass this info on as individual parameters in the call. This commit introduces this change. Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Reviewed-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5fd9fd6351
commit
0e05498e9e
@@ -205,8 +205,10 @@ struct tipc_link {
|
||||
struct tipc_stats stats;
|
||||
};
|
||||
|
||||
bool tipc_link_create(struct tipc_node *n, struct tipc_bearer *b, u32 session,
|
||||
u32 ownnode, u32 peer, struct tipc_media_addr *maddr,
|
||||
bool tipc_link_create(struct tipc_node *n, char *if_name, int bearer_id,
|
||||
int tolerance, char net_plane, u32 mtu, int priority,
|
||||
int window, u32 session, u32 ownnode, u32 peer,
|
||||
struct tipc_media_addr *maddr,
|
||||
struct sk_buff_head *inputq, struct sk_buff_head *namedq,
|
||||
struct tipc_link **link);
|
||||
void tipc_link_tnl_prepare(struct tipc_link *l, struct tipc_link *tnl,
|
||||
|
Reference in New Issue
Block a user