Commit f3b20313 authored by Yotam Gigi's avatar Yotam Gigi Committed by David S. Miller
Browse files

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: default avatarCong Wang <>
Reviewed-by: default avatarJiri Pirko <>
Signed-off-by: default avatarYotam Gigi <>
Signed-off-by: default avatarDavid S. Miller <>
parent cadb9c9f
......@@ -76,7 +76,6 @@ static int tcf_sample_init(struct net *net, struct nlattr *nla,
s = to_sample(*a);
s->tcf_action = parm->action;
s->rate = nla_get_u32(tb[TCA_SAMPLE_RATE]);
s->psample_group_num = nla_get_u32(tb[TCA_SAMPLE_PSAMPLE_GROUP]);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment