aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorJarno Rajahalme <jarno.rajahalme@nsn.com>2013-01-09 17:27:35 -0500
committerJesse Gross <jesse@nicira.com>2013-01-09 17:27:35 -0500
commit14408dba8440ef629a3a2827bc4c7b5045889295 (patch)
tree7566d42750de46f6e17328e2a9d8bea9356380e2 /net/openvswitch
parent9807a54cd74149988f5d20088bf7a7957c205bfb (diff)
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: Jarno Rajahalme <jarno.rajahalme@nsn.com> Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/datapath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
index f996db343247..f9d2438e6437 100644
--- a/net/openvswitch/datapath.c
+++ b/net/openvswitch/datapath.c
@@ -1628,7 +1628,7 @@ static struct vport *lookup_vport(struct net *net,
1628 1628
1629 vport = ovs_vport_rtnl_rcu(dp, port_no); 1629 vport = ovs_vport_rtnl_rcu(dp, port_no);
1630 if (!vport) 1630 if (!vport)
1631 return ERR_PTR(-ENOENT); 1631 return ERR_PTR(-ENODEV);
1632 return vport; 1632 return vport;
1633 } else 1633 } else
1634 return ERR_PTR(-EINVAL); 1634 return ERR_PTR(-EINVAL);