You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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 <richard.alpe@ericsson.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Acked-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
8dfd329fbc
commit
49cc66eaee
+1
-22
@@ -41,6 +41,7 @@
|
||||
#include "socket.h"
|
||||
#include "bcast.h"
|
||||
#include "discover.h"
|
||||
#include "netlink.h"
|
||||
|
||||
#define INVALID_NODE_SIG 0x10000
|
||||
|
||||
@@ -164,28 +165,6 @@ struct tipc_sock_conn {
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
static const struct nla_policy tipc_nl_link_policy[TIPC_NLA_LINK_MAX + 1] = {
|
||||
[TIPC_NLA_LINK_UNSPEC] = { .type = NLA_UNSPEC },
|
||||
[TIPC_NLA_LINK_NAME] = {
|
||||
.type = NLA_STRING,
|
||||
.len = TIPC_MAX_LINK_NAME
|
||||
},
|
||||
[TIPC_NLA_LINK_MTU] = { .type = NLA_U32 },
|
||||
[TIPC_NLA_LINK_BROADCAST] = { .type = NLA_FLAG },
|
||||
[TIPC_NLA_LINK_UP] = { .type = NLA_FLAG },
|
||||
[TIPC_NLA_LINK_ACTIVE] = { .type = NLA_FLAG },
|
||||
[TIPC_NLA_LINK_PROP] = { .type = NLA_NESTED },
|
||||
[TIPC_NLA_LINK_STATS] = { .type = NLA_NESTED },
|
||||
[TIPC_NLA_LINK_RX] = { .type = NLA_U32 },
|
||||
[TIPC_NLA_LINK_TX] = { .type = NLA_U32 }
|
||||
};
|
||||
|
||||
static const struct nla_policy tipc_nl_node_policy[TIPC_NLA_NODE_MAX + 1] = {
|
||||
[TIPC_NLA_NODE_UNSPEC] = { .type = NLA_UNSPEC },
|
||||
[TIPC_NLA_NODE_ADDR] = { .type = NLA_U32 },
|
||||
[TIPC_NLA_NODE_UP] = { .type = NLA_FLAG }
|
||||
};
|
||||
|
||||
static struct tipc_link *node_active_link(struct tipc_node *n, int sel)
|
||||
{
|
||||
int bearer_id = n->active_links[sel & 1];
|
||||
|
||||
Reference in New Issue
Block a user