net/qede/base: fix number of ports per engine
authorRasesh Mody <rmody@marvell.com>
Sat, 21 Dec 2019 01:34:51 +0000 (17:34 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:26 +0000 (19:46 +0100)
commit117e4a77bada8337c9fec3f44d4e2c228c6fbd7c
tree8ad1f896e245f3c1c073a7f84a9f501a32c4f00e
parent14766d69202b819b63ee2fccc1a9206b0172bb5e
net/qede/base: fix number of ports per engine

Fix the way in which the number of ports per engine of an adapter is
determined by reading port mode register. Set default value to 1.

Fixes: 3b307c55f2ac ("net/qede/base: update FW to 8.40.25.0")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rmody@marvell.com>
drivers/net/qede/base/ecore_dev.c