diff mbox series

[2/3] backport: add policy field in struct genl_family

Message ID 1554066762-20128-2-git-send-email-arend.vanspriel@broadcom.com (mailing list archive)
State Accepted
Headers show
Series [1/3] patches: update select queue patches | expand

Commit Message

Arend van Spriel March 31, 2019, 9:12 p.m. UTC
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 mbox series

Patch

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);