From: martin Zhang <zhangjunweimar...@didichuxing.com>

1. increase DM netlink version from 2 to 3, as it now support net ns.
2. netns ok become ture.

Signed-off-by: martin Zhang <zhangjunweimar...@didichuxing.com>
---
 net/core/drop_monitor.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c
index 5828bf2..064128b 100644
--- a/net/core/drop_monitor.c
+++ b/net/core/drop_monitor.c
@@ -489,7 +489,8 @@ static int dropmon_net_event(struct notifier_block 
*ev_block,
 static struct genl_family net_drop_monitor_family __ro_after_init = {
        .hdrsize        = 0,
        .name           = "NET_DM",
-       .version        = 2,
+       .version        = 3,
+       .netnsok        = 1,
        .module         = THIS_MODULE,
        .ops            = dropmon_ops,
        .n_ops          = ARRAY_SIZE(dropmon_ops),
-- 
1.8.3.1

Reply via email to