[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH 2/3] backport: add policy field in struct genl_family
From:       Arend van Spriel <arend.vanspriel () broadcom ! com>
Date:       2019-03-31 21:12:41
Message-ID: 1554066762-20128-2-git-send-email-arend.vanspriel () broadcom ! com
[Download RAW message or body]

Commit 3b0f31f2b8c9 ("genetlink: make policy common to family") added
a common policy to the genl_family. So we need it in backport as well.
As the backport explicitly sets ops policy to NULL no further changes
are needed.

Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
---
 backport/backport-include/net/genetlink.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backport/backport-include/net/genetlink.h b/backport/backport-include/net/genetlink.h
index 84011e7..1b5f4e1 100644
--- a/backport/backport-include/net/genetlink.h
+++ b/backport/backport-include/net/genetlink.h
@@ -115,6 +115,7 @@ struct backport_genl_family {
 	unsigned int		maxattr;
 	bool			netnsok;
 	bool			parallel_ops;
+	const struct nla_policy *policy;
 	int			(*pre_doit)(__genl_const struct genl_ops *ops,
 					    struct sk_buff *skb,
 					    struct genl_info *info);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic