Skip to content

Commit

Permalink
tipc: make tipc broadcast link support net namespace
Browse files Browse the repository at this point in the history
TIPC broadcast link is statically established and its relevant states
are maintained with the global variables: "bcbearer", "bclink" and
"bcl". Allowing different namespace to own different broadcast link
instances, these variables must be moved to tipc_net structure and
broadcast link instances would be allocated and initialized when
namespace is created.

Signed-off-by: Ying Xue <[email protected]>
Tested-by: Tero Aho <[email protected]>
Reviewed-by: Jon Maloy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ying-xue authored and davem330 committed Jan 12, 2015
1 parent 7f9f95d commit 1da4656
Show file tree
Hide file tree
Showing 12 changed files with 259 additions and 205 deletions.
2 changes: 1 addition & 1 deletion net/tipc/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/

#include "core.h"
#include <linux/kernel.h>
#include "addr.h"

/**
Expand Down
3 changes: 3 additions & 0 deletions net/tipc/addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
#ifndef _TIPC_ADDR_H
#define _TIPC_ADDR_H

#include <linux/types.h>
#include <linux/tipc.h>

#define TIPC_ZONE_MASK 0xff000000u
#define TIPC_CLUSTER_MASK 0xfffff000u

Expand Down
Loading

0 comments on commit 1da4656

Please sign in to comment.