net: ethernet: Add helper for MACs which support pause
authorAndrew Lunn <andrew@lunn.ch>
Tue, 11 Sep 2018 23:53:16 +0000 (01:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2018 03:24:21 +0000 (20:24 -0700)
commitc306ad36184fb7d0bd53f45441f45c1810e88a53
tree4f7f276b7e8f4cf4ea1da7df63bdff78d117aee5
parentaf8d9bb2f2f405ad541794b46f9d7bc70f13e5cb
net: ethernet: Add helper for MACs which support pause

Rather than have the MAC drivers manipulate phydev members, add a
helper function for MACs supporting Pause, but not Asym Pause.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcm63xx_enet.c
drivers/net/ethernet/freescale/fec_main.c
drivers/net/phy/phy_device.c
include/linux/phy.h