Re: [ovs-dev] [PATCH] datapath: Change the single ENOENT return value to ENODEV...

2013-01-09 Thread Jesse Gross
On Wed, Jan 9, 2013 at 12:16 PM, Jarno Rajahalme wrote: > > On Jan 9, 2013, at 20:19 , ext Jesse Gross wrote: > >> On Wed, Jan 9, 2013 at 2:33 AM, Jarno Rajahalme >> wrote: >>> >>> On Jan 8, 2013, at 21:07 , ext Jesse Gross wrote: >>> On Tue, Jan 8, 2013 at 3:41 AM, Jarno Rajahalme w

Re: [ovs-dev] [PATCH] datapath: Change the single ENOENT return value to ENODEV...

2013-01-09 Thread Jarno Rajahalme
On Jan 9, 2013, at 20:19 , ext Jesse Gross wrote: > On Wed, Jan 9, 2013 at 2:33 AM, Jarno Rajahalme > wrote: >> >> On Jan 8, 2013, at 21:07 , ext Jesse Gross wrote: >> >>> On Tue, Jan 8, 2013 at 3:41 AM, Jarno Rajahalme >>> wrote: Userspace code will need to keep on checking for both E

Re: [ovs-dev] [PATCH] datapath: Change the single ENOENT return value to ENODEV...

2013-01-09 Thread Jesse Gross
On Wed, Jan 9, 2013 at 2:33 AM, Jarno Rajahalme wrote: > > On Jan 8, 2013, at 21:07 , ext Jesse Gross wrote: > >> On Tue, Jan 8, 2013 at 3:41 AM, Jarno Rajahalme >> wrote: >>> Userspace code will need to keep on checking for both ENODEV and ENOENT as >>> long as older kernel modules are around.

Re: [ovs-dev] [PATCH] datapath: Change the single ENOENT return value to ENODEV...

2013-01-09 Thread Jarno Rajahalme
On Jan 8, 2013, at 21:07 , ext Jesse Gross wrote: > On Tue, Jan 8, 2013 at 3:41 AM, Jarno Rajahalme > wrote: >> 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 > > OVS userspace actual

Re: [ovs-dev] [PATCH] datapath: Change the single ENOENT return value to ENODEV in lookup_vport() to reduce the number of valid "no such device" error values that need special attention by the caller.

2013-01-08 Thread Jesse Gross
On Tue, Jan 8, 2013 at 3:41 AM, Jarno Rajahalme wrote: > 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 OVS userspace actually uses this distinction to determine whether it is the datapath o

[ovs-dev] [PATCH] datapath: Change the single ENOENT return value to ENODEV in lookup_vport() to reduce the number of valid "no such device" error values that need special attention by the caller.

2013-01-08 Thread Jarno Rajahalme
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 --- datapath/datapath.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/datapath.c b/datapath/datapath.c index 30e26a