diff options
| author | Jon Paul Maloy <[email protected]> | 2015-07-16 20:54:19 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-07-21 03:41:14 +0000 |
| commit | 9d13ec65ede775f896c3da1cfa35283afe2f796c (patch) | |
| tree | 34ac0c21607481a2377b3201c3fe58c3f6ac7947 /net/tipc/discover.c | |
| parent | net: remove skb_frag_add_head (diff) | |
| download | kernel-9d13ec65ede775f896c3da1cfa35283afe2f796c.tar.gz kernel-9d13ec65ede775f896c3da1cfa35283afe2f796c.zip | |
tipc: introduce link entry structure to struct tipc_node
struct 'tipc_node' currently contains two arrays for link attributes,
one for the link pointers, and one for the usable link MTUs.
We now group those into a new struct 'tipc_link_entry', and intoduce
one single array consisting of such enties. Apart from being a cosmetic
improvement, this is a starting point for the strict master-slave
relation between node and link that we will introduce in the following
commits.
Reviewed-by: Ying Xue <[email protected]>
Signed-off-by: Jon Maloy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/discover.c')
| -rw-r--r-- | net/tipc/discover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/discover.c b/net/tipc/discover.c index 967e292f53c8..933445337fb4 100644 --- a/net/tipc/discover.c +++ b/net/tipc/discover.c @@ -170,7 +170,7 @@ void tipc_disc_rcv(struct net *net, struct sk_buff *buf, return; tipc_node_lock(node); node->capabilities = caps; - link = node->links[bearer->identity]; + link = node->links[bearer->identity].link; /* Prepare to validate requesting node's signature and media address */ sign_match = (signature == node->signature); |
