Merge branch 'octeon-ethtool'
authorDavid S. Miller <davem@davemloft.net>
Wed, 10 Feb 2021 23:19:54 +0000 (15:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Feb 2021 23:19:54 +0000 (15:19 -0800)
commitafdb9af9bcbd579dac77269035c86f1d9e6eac43
tree03ef398a98016247b00b0996c8351489e2e02d37
parent1fb3ca767529e94efbd770048163a00eba644c1c
parentcff713ce6c1307f0701cf905e05c944d75369dbc
Merge branch 'octeon-ethtool'

Hariprasad Kelam says:

====================
ethtool support for fec and link configuration

This series of patches add support for forward error correction(fec) and
physical link configuration. Patches 1&2 adds necessary mbox handlers for fec
mode configuration request and to fetch stats. Patch 3 registers driver
callbacks for fec mode configuration and display. Patch 4&5 adds support of mbox
handlers for configuring link parameters like speed/duplex and autoneg etc.
Patche 6&7 registers driver callbacks for physical link configuration.

Change-log:
v2:
- Fixed review comments
- Corrected indentation issues
        - Return -ENOMEM incase of mbox allocation failure
- added validation for input fecparams bitmask values
        - added more comments

V3:
- Removed inline functions
        - Make use of ethtool helpers APIs to display supported
          advertised modes
        - corrected indentation issues
        - code changes such that return early in case of failure
          to aid branch prediction
v4:
- Corrected indentation issues
- Use FEC_OFF if user requests for FEC_AUTO mode
- Do not clear fec stats in case of user changes
  fec mode
- dont hide fec stats depending on interface mode
  selection
====================

Signed-off-by: David S. Miller <davem@davemloft.net>