提交 14408dba 编写于 作者: J Jarno Rajahalme 提交者: Jesse Gross

openvswitch: Change ENOENT return value to ENODEV in lookup_vport().

This reduces the number of valid "no such device" error values that
need special attention by the caller.

Userspace code will need to keep on checking for both ENODEV and
ENOENT as long as older kernel modules are around.
Signed-off-by: NJarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: NJesse Gross <jesse@nicira.com>
上级 9807a54c
......@@ -1628,7 +1628,7 @@ static struct vport *lookup_vport(struct net *net,
vport = ovs_vport_rtnl_rcu(dp, port_no);
if (!vport)
return ERR_PTR(-ENOENT);
return ERR_PTR(-ENODEV);
return vport;
} else
return ERR_PTR(-EINVAL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册