.maxattr = BRC_GENL_A_MAX,
};
-/* Attribute policy: what each attribute may contain. */
-static struct nla_policy brc_genl_policy[BRC_GENL_A_MAX + 1] = {
- [BRC_GENL_A_DP_NAME] = { .type = NLA_STRING },
- [BRC_GENL_A_PORT_NAME] = { .type = NLA_STRING }
-};
-
static int brc_genl_query(struct sk_buff *skb, struct genl_info *info)
{
int err = -EINVAL;
static struct genl_ops brc_genl_ops_query_dp = {
.cmd = BRC_GENL_C_QUERY_MC,
.flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privelege. */
- .policy = brc_genl_policy,
+ .policy = NULL,
.doit = brc_genl_query,
.dumpit = NULL
};