net/qede/base: adjust queue manager idx greater than max
authorRasesh Mody <rasesh.mody@cavium.com>
Sat, 29 Sep 2018 08:14:32 +0000 (08:14 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:48 +0000 (18:53 +0200)
commit7b49adea80ce60a48858e53e92bfe063848d80ca
treedfeb29a6e4b41c915c493c47cd8d3ece91745748
parent4eae6b014c86027b4b3045221a65ce8a4f6392a5
net/qede/base: adjust queue manager idx greater than max

Modified queue manager getter APIs to cycle through their range if
index is higher than max. This prevents accessing index out of bounds.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_dev.c