datapath: Change ENOENT return value to ENODEV in lookup_vport().
authorJarno Rajahalme <jarno.rajahalme@nsn.com>
Tue, 8 Jan 2013 11:41:00 +0000 (13:41 +0200)
committerJesse Gross <jesse@nicira.com>
Wed, 9 Jan 2013 22:24:34 +0000 (14:24 -0800)
commit17535c57bf1a0fd1b298ba54adb8831fc99e667c
tree10cebec04123aa809801fac9b37ecae889b4b0f9
parent6472ba1117d19919c9cd1726e4f8cef0669059d6
datapath: 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>
datapath/datapath.c