net: mvpp2: add ethtool flow control configuration support
authorStefan Chulski <stefanc@marvell.com>
Thu, 11 Feb 2021 10:48:58 +0000 (12:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 22:50:23 +0000 (14:50 -0800)
commit76055831cf84b8fc202f7e5c6b6639817832eef3
tree92265ad8ca533ab7cb20db118bc0d4bb287d61ce
parent3bd17fdc08e99c40044aed061e8f6599a1e20710
net: mvpp2: add ethtool flow control configuration support

This patch add ethtool flow control configuration support.

Tx flow control retrieved correctly by ethtool get function.
FW per port ethtool configuration capability added.

Patch also takes care about mtu change procedure, if PPv2 switch
BM pools during mtu change.

Signed-off-by: Stefan Chulski <stefanc@marvell.com>
Acked-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2.h
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c