From: martinbj2008@gmail.com
To: martinbj2008@gmail.com, davem@davemloft.net,
nhorman@tuxdriver.com, xiyou.wangcong@gmail.com
Cc: netdev@vger.kernel.org, martin Zhang <zhangjunweimartin@didichuxing.com>
Subject: [PATCH v2 net-next 5/5] drop_monitor: increase version when ns support is ready
Date: Tue, 25 Jul 2017 19:38:59 +0800 [thread overview]
Message-ID: <1500982739-15805-5-git-send-email-zhangjunweimartin@didichuxing.com> (raw)
In-Reply-To: <1500982739-15805-1-git-send-email-zhangjunweimartin@didichuxing.com>
From: martin Zhang <zhangjunweimartin@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 <zhangjunweimartin@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 da0c88b..1892894 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
next prev parent reply other threads:[~2017-07-25 11:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1499855478-29736-1-git-send-email-zhangjunweimartin@didichuxing.com>
2017-07-25 11:38 ` [PATCH v2 net-next 1/5] drop_monitor: import netnamespace framework martinbj2008
2017-07-25 11:38 ` [PATCH v2 net-next 2/5] drop_monitor: let dm trace state support ns martinbj2008
2017-07-25 11:38 ` [PATCH v2 net-next 3/5] drop_monitor: let hw_stats_list support net ns martinbj2008
2017-07-25 11:38 ` [PATCH v2 net-next 4/5] drop_monitor: let drop stat " martinbj2008
2017-07-25 11:38 ` martinbj2008 [this message]
2017-07-25 19:36 ` [PATCH v2 net-next 1/5] drop_monitor: import netnamespace framework David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1500982739-15805-5-git-send-email-zhangjunweimartin@didichuxing.com \
--to=martinbj2008@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=xiyou.wangcong@gmail.com \
--cc=zhangjunweimartin@didichuxing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).