Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14408dba authored by Jarno Rajahalme's avatar Jarno Rajahalme Committed by Jesse Gross
Browse files

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: default avatarJarno Rajahalme <jarno.rajahalme@nsn.com>
Signed-off-by: default avatarJesse Gross <jesse@nicira.com>
parent 9807a54c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);