Re: [dpdk-dev] [PATCH] reorder: add checks for invalid function inputs

2019-04-22 Thread Thomas Monjalon
> > For APIs which can return an error value, do sanity checking of the input > > parameters for NULL and return a suitable error value for those cases. > > > > NOTE: The drain function is currently omitting NULL checks too, but this > > function has no way to flag an error value, so checking in t

Re: [dpdk-dev] [PATCH] reorder: add checks for invalid function inputs

2019-04-11 Thread Iremonger, Bernard
> -Original Message- > From: Richardson, Bruce > Sent: Wednesday, April 10, 2019 12:25 PM > To: dev@dpdk.org > Cc: Iremonger, Bernard ; Richardson, Bruce > > Subject: [PATCH] reorder: add checks for invalid function inputs > > For APIs which can return an error value, do sanity checking o

[dpdk-dev] [PATCH] reorder: add checks for invalid function inputs

2019-04-10 Thread Bruce Richardson
For APIs which can return an error value, do sanity checking of the input parameters for NULL and return a suitable error value for those cases. NOTE: The drain function is currently omitting NULL checks too, but this function has no way to flag an error value, so checking in that case would simpl