提交 2230a7ef 编写于 作者: I Ido Schimmel 提交者: David S. Miller

drop_monitor: Use correct error code

The error code 'ENOTSUPP' is reserved for use with NFS. Use 'EOPNOTSUPP'
instead.
Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 267df70f
......@@ -298,7 +298,7 @@ static int set_all_monitor_traces(int state)
static int net_dm_cmd_config(struct sk_buff *skb,
struct genl_info *info)
{
return -ENOTSUPP;
return -EOPNOTSUPP;
}
static int net_dm_cmd_trace(struct sk_buff *skb,
......@@ -311,7 +311,7 @@ static int net_dm_cmd_trace(struct sk_buff *skb,
return set_all_monitor_traces(TRACE_OFF);
}
return -ENOTSUPP;
return -EOPNOTSUPP;
}
static int dropmon_net_event(struct notifier_block *ev_block,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册