qed: Read device port count from the shmem
authorSudarsana Reddy Kalluru <skalluru@marvell.com>
Thu, 21 Feb 2019 14:03:31 +0000 (06:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 18:51:08 +0000 (10:51 -0800)
commit0ebcebbef1cc50fb94ae17917208b04868de9c38
tree70fd0ddd5f07ab2d9ac9413f38f208072f17c9ce
parentcceb58b113e1e09818134dfd588627888a91970f
qed: Read device port count from the shmem

Read port count from the shared memory instead of driver deriving this
value. This change simplifies the driver implementation and also avoids
any dependencies for finding the port-count.

Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed.h
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_l2.c
drivers/net/ethernet/qlogic/qed/qed_mcp.h
drivers/net/ethernet/qlogic/qed/qed_ptp.c