net: mvpp2: divide fifo for dts-active ports only
authorStefan Chulski <stefanc@marvell.com>
Mon, 23 Nov 2020 17:54:33 +0000 (19:54 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Nov 2020 23:05:04 +0000 (15:05 -0800)
commit9a71baf719968576326c6a6bc0a57af0e6413c50
tree8e3e1417c7b0ece1c29d72b8333d9f16a93ded49
parent2f1cce214b237143359202abd83575b91130260f
net: mvpp2: divide fifo for dts-active ports only

Tx/Rx FIFO is a HW resource limited by total size, but shared
by all ports of same CP110 and impacting port-performance.
Do not divide the FIFO for ports which are not enabled in DTS,
so active ports could have more FIFO.
No change in FIFO allocation if all 3 ports on the communication
processor enabled in DTS.

The active port mapping should be done in probe before FIFO-init.

Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/1606154073-28267-1-git-send-email-stefanc@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c