net/bnx2x: fix supported max Rx/Tx descriptor count
authorShahed Shaikh <shshaikh@marvell.com>
Tue, 4 Jun 2019 18:53:52 +0000 (11:53 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:30 +0000 (23:54 +0900)
commit65a45ecc76bbca1c167bd034d85827666084d83a
tree79bdb7835bcc24b9579b79f18e6f27d9b468cf00
parent6c5b9b2aaf3945638af8acba00048b0454355d51
net/bnx2x: fix supported max Rx/Tx descriptor count

Driver does not provide limit on number Rx and Tx descriptors per queue,
this may result in application configuring 64k descriptors (default set
by rte_eth_dev_info_get()) and further result in issues in PMD and HW
flows due to unsupported number.

Fixes: 540a211084a7 ("bnx2x: driver core")
Cc: stable@dpdk.org
Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/bnx2x_ethdev.c