]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita92236c05d5f812fba9a7307d4aa43fb6c641a45
tree03ef398a98016247b00b0996c8351489e2e02d37
parentd449176443dccf1be3097cce5f3964ddc7a61d67
parent49d9d4cb88472f7698b8e677c206aee759817d41
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>