diff options
| author | Richard Alpe <[email protected]> | 2016-03-04 16:04:42 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-03-07 19:56:41 +0000 |
| commit | 49cc66eaee19e772997b63b057ea4b4bf7d48db0 (patch) | |
| tree | 94239e052435b3c2d505c8be6e2f7582db5d1da8 /net/tipc/net.c | |
| parent | arp: correct return value of arp_rcv (diff) | |
| download | kernel-49cc66eaee19e772997b63b057ea4b4bf7d48db0.tar.gz kernel-49cc66eaee19e772997b63b057ea4b4bf7d48db0.zip | |
tipc: move netlink policies to netlink.c
Make the c files less cluttered and enable netlink attributes to be
shared between files.
Signed-off-by: Richard Alpe <[email protected]>
Reviewed-by: Jon Maloy <[email protected]>
Acked-by: Parthasarathy Bhuvaragan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/net.c')
| -rw-r--r-- | net/tipc/net.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/tipc/net.c b/net/tipc/net.c index 86d68b352bd6..28bf4feeb81c 100644 --- a/net/tipc/net.c +++ b/net/tipc/net.c @@ -41,11 +41,7 @@ #include "socket.h" #include "node.h" #include "bcast.h" - -static const struct nla_policy tipc_nl_net_policy[TIPC_NLA_NET_MAX + 1] = { - [TIPC_NLA_NET_UNSPEC] = { .type = NLA_UNSPEC }, - [TIPC_NLA_NET_ID] = { .type = NLA_U32 } -}; +#include "netlink.h" /* * The TIPC locking policy is designed to ensure a very fine locking |
