net/qede: limit ring size to 32k
authorHarish Patil <harish.patil@cavium.com>
Sat, 1 Jul 2017 19:29:57 +0000 (12:29 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commitc008e17b61265f35ab299a4cc991bd4f1257402b
tree13fb1c44cdcc7cb27e3a135e9ed51ad2584175fa
parente1c9b9995e9ba3b5559c429bc5df11f27cd3ac71
net/qede: limit ring size to 32k

Since nb_max is a u16 it can store value up to 65535 only (not 64K),
but this value is not a power-of-2. So limit the ring sizes to 32K.

Signed-off-by: Harish Patil <harish.patil@cavium.com>
drivers/net/qede/qede_ethdev.c