提交 f3b20313 编写于 作者: Y Yotam Gigi 提交者: David S. Miller

net/sched: act_psample: Remove unnecessary ASSERT_RTNL

The ASSERT_RTNL is not necessary in the init function, as it does not
touch any rtnl protected structures, as opposed to the mirred action which
does have to hold a net device.
Reported-by: NCong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NYotam Gigi <yotamg@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cadb9c9f
...@@ -76,7 +76,6 @@ static int tcf_sample_init(struct net *net, struct nlattr *nla, ...@@ -76,7 +76,6 @@ static int tcf_sample_init(struct net *net, struct nlattr *nla,
} }
s = to_sample(*a); s = to_sample(*a);
ASSERT_RTNL();
s->tcf_action = parm->action; s->tcf_action = parm->action;
s->rate = nla_get_u32(tb[TCA_SAMPLE_RATE]); s->rate = nla_get_u32(tb[TCA_SAMPLE_RATE]);
s->psample_group_num = nla_get_u32(tb[TCA_SAMPLE_PSAMPLE_GROUP]); s->psample_group_num = nla_get_u32(tb[TCA_SAMPLE_PSAMPLE_GROUP]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册