OSDN Git Service

net: mvpp2: set the Rx FIFO size depending on the port speeds for PPv2.2
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Mon, 30 Oct 2017 10:23:28 +0000 (11:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Nov 2017 03:28:32 +0000 (12:28 +0900)
commit2d1d7df8a3652697da7f7929791d555e6c5981c2
tree6bd6c5b7e95ed45d11a8b32145f29c2d794f2980
parent26a8ba2c8b36840da8e068d551e1578b684dcd33
net: mvpp2: set the Rx FIFO size depending on the port speeds for PPv2.2

The Rx FIFO size was set to the same value for all ports. This patch
sets it depending on the maximum speed a given port can handle. This is
only working for PPv2.2.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c