net: bcmgenet: add support for ethtool flow control
authorDoug Berger <opendmb@gmail.com>
Sun, 26 Sep 2021 03:21:14 +0000 (20:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 15:34:52 +0000 (16:34 +0100)
commit2d8bdf525d71bd3e0d61d0bf398ceebeea81f58f
tree4afe2424c9fc279002d2a5bce98af0c3ef476174
parentfc13d8c03773e48cd775aecdbd281b1cbad87ac2
net: bcmgenet: add support for ethtool flow control

This commit extends the supported ethtool operations to allow MAC
level flow control to be configured for the bcmgenet driver.

The ethtool utility can be used to change the configuration of
auto-negotiated symmetric and asymmetric modes as well as manually
configuring support for RX and TX Pause frames individually.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h
drivers/net/ethernet/broadcom/genet/bcmmii.c