net/bnxt: update returned error on invalid max ring
authorJay Ding <jay.ding@broadcom.com>
Tue, 1 May 2018 01:06:08 +0000 (18:06 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:48 +0000 (22:31 +0100)
commita42b152abaf40caf966d24bb1a17d6928a5ab12f
tree139c11d39120f6b6557feeb3dc5046a6b9cc2cb1
parent6070ed8eab42b78eb1b2482241cec729695ad47d
net/bnxt: update returned error on invalid max ring

Return EINVAL instead of ENOSPC when invalid queue_idx passed in
during rx and tx queue_setup_op routines.

Signed-off-by: Jay Ding <jay.ding@broadcom.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_rxq.c
drivers/net/bnxt/bnxt_txq.c