From: David S. Miller Date: Wed, 10 Feb 2021 23:19:54 +0000 (-0800) Subject: Merge branch 'octeon-ethtool' X-Git-Tag: v5.12-rc1~200^2~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=afdb9af9bcbd579dac77269035c86f1d9e6eac43;p=thirdparty%2Fkernel%2Flinux.git 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 --- afdb9af9bcbd579dac77269035c86f1d9e6eac43