linux_dsm_epyc7002/drivers/net/ethernet/qualcomm/emac
Timur Tabi b44700e975 net: qcom/emac: add ethool support for setting pause parameters
To support setting the pause parameters, the driver can no longer just
mirror the PHY.  The set_pauseparam feature allows the driver to
force the setting in the MAC, regardless of how the PHY is configured.
This means that we now need to maintain an internal state for pause
frame support, and so get_pauseparam also needs to be updated.

If the interface is already running when the setting is changed, then
the interface is reset.

Note that if the MAC is configured to enable RX pause frame support
(i.e. it transmits pause frames to throttle the other end), but the
PHY is configured to block those frames, then the feature will not work.

Also some buffer size initialization code into emac_init_adapter(),
so that it lives with similar code, including the initializtion of
pause frame support.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-02-07 13:18:52 -05:00
..
emac-ethtool.c net: qcom/emac: add ethool support for setting pause parameters 2017-02-07 13:18:52 -05:00
emac-mac.c net: qcom/emac: add ethool support for setting pause parameters 2017-02-07 13:18:52 -05:00
emac-mac.h net: qcom/emac: do not call emac_mac_start twice 2017-01-29 19:07:02 -05:00
emac-phy.c net: qcom/emac: display the phy driver info after we connect 2017-01-29 19:07:02 -05:00
emac-phy.h net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii-fsm9900.c net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii-qdf2400.c net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii-qdf2432.c net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii.c net: qcom/emac: add an error interrupt handler for the sgmii 2017-01-29 19:07:02 -05:00
emac-sgmii.h net: qcom/emac: add an error interrupt handler for the sgmii 2017-01-29 19:07:02 -05:00
emac.c net: qcom/emac: add ethool support for setting pause parameters 2017-02-07 13:18:52 -05:00
emac.h net: qcom/emac: add ethool support for setting pause parameters 2017-02-07 13:18:52 -05:00
Makefile net: qcom/emac: add ethtool support 2017-01-10 13:26:25 -05:00