On Thu, 31 May 2018 13:44:30 +0100 Ferruh Yigit <ferruh.yi...@intel.com> wrote:
> The error path was disabled in previous release to let apps to be more > flexible. > > But this release they are enabled, applications have to obey offload API > rules otherwise they will get errors from following APIs: > rte_eth_dev_configure > rte_eth_rx_queue_setup > rte_eth_tx_queue_setup > > Signed-off-by: Ferruh Yigit <ferruh.yi...@intel.com> Rather than always returning -EINVAL, why not propagate error code that the driver returns. This would allow driver to give a more detailed error return. The problem with that is you probably need to do a review of each drivers configure and setup routines to see what they return on error (if any).