Re: [vpp-dev] Weird Error Number

2019-05-15 Thread Ole Troan
> > Can anyone shed some light here? > > I guess the purpose of a positive value is to indicate that you can try again > with the same arguments and get a different response, > as opposed to a negative value. > > I would be in favour of removing that error from api_errno.h. > Especially for thes

Re: [vpp-dev] Weird Error Number

2019-05-14 Thread Jon Loeliger via Lists.Fd.Io
On Wed, May 8, 2019 at 7:24 AM Ole Troan wrote: > Hi Jon, > > > Can anyone shed some light here? > > I guess the purpose of a positive value is to indicate that you can try > again with the same arguments and get a different response, > as opposed to a negative value. > > I would be in favour of

Re: [vpp-dev] Weird Error Number

2019-05-08 Thread Ole Troan
Hi Jon, > So I was reading src/vnet/api_errno.h, as you do, and I noticed > this weird line: > > _(IN_PROGRESS, 10, "Operation in progress") \ > > That's right, an error number that is positive. It just doesn't sound > right... > And I don't think it is simply m

Re: [vpp-dev] Weird Error Number

2019-05-06 Thread Dave Barach via Lists.Fd.Io
Behalf Of Jon Loeliger Sent: Monday, May 6, 2019 12:03 PM To: vpp-dev Subject: [vpp-dev] Weird Error Number Folks, So I was reading src/vnet/api_errno.h, as you do, and I noticed this weird line: _(IN_PROGRESS, 10, "Operation in progress") \ That&#

[vpp-dev] Weird Error Number

2019-05-06 Thread Jon Loeliger
Folks, So I was reading src/vnet/api_errno.h, as you do, and I noticed this weird line: _(IN_PROGRESS, 10, "Operation in progress") \ That's right, an error number that is positive. It just doesn't sound right... And I don't think it is simply missing a negative sign as there is also this