net/enic: improve out of resources error handling
authorJohn Daley <johndale@cisco.com>
Sat, 11 Jun 2016 17:27:05 +0000 (10:27 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 15:21:49 +0000 (17:21 +0200)
commitb6d5fd2e96096390faeface25ee56f841763c169
tree6fed28b4c0b951967864c60d4f6023e73d5273ab
parent83a9d8b7eb06a9a5f99cbe3b529f736077c9a826
net/enic: improve out of resources error handling

If configuration fails due to lack of resources, be more specific
about which resources are lacking - work queues, read queues or
completion queues. Return -EINVAL instead of -1 if more queeues
are requested than are available.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c