Skip to content

ethtool support for fec and link configuration

Hariprasad Kelam lkml netdev 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 1 replyIn review
  2. v37 patches 11 repliesSuperseded
  3. v27 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches2 repliesSuperseded

Changes in v4 from the cover letter

- 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

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7octeontx2-af: forward error correction configurationdrivers/net/ethernet/marvell/octeontx2/af/cgx.c drivers/net/ethernet/marvell/octeontx2/af/cgx.h drivers/net/ethernet/marvell/octeontx2/af/cgx_fw_if.h +2 more+155 -20 replies
2/7octeontx2-af: Add new CGX_CMD to get PHY FEC statisticsdrivers/net/ethernet/marvell/octeontx2/af/cgx.c drivers/net/ethernet/marvell/octeontx2/af/cgx.h drivers/net/ethernet/marvell/octeontx2/af/cgx_fw_if.h +3 more+97 -00 replies
3/7octeontx2-pf: ethtool fec mode supportdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c +1 more+188 -10 replies
4/7octeontx2-af: Physical link configuration supportdrivers/net/ethernet/marvell/octeontx2/af/cgx.c drivers/net/ethernet/marvell/octeontx2/af/cgx.h drivers/net/ethernet/marvell/octeontx2/af/cgx_fw_if.h +2 more+113 -30 replies
5/7octeontx2-af: advertised link modes support on cgxdrivers/net/ethernet/marvell/octeontx2/af/cgx.c drivers/net/ethernet/marvell/octeontx2/af/cgx_fw_if.h drivers/net/ethernet/marvell/octeontx2/af/mbox.h+146 -30 replies
6/7octeontx2-pf: ethtool physical link statusdrivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c+158 -00 replies
7/7octeontx2-pf: ethtool physical link configurationdrivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c+63 -00 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchJesse Brandeburg
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Patch v4 net-next 0/7] 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

Christina Jacob (6):
octeontx2-af: forward error correction configuration
octeontx2-pf: ethtool fec mode support
octeontx2-af: Physical link configuration support
octeontx2-af: advertised link modes support on cgx
octeontx2-pf: ethtool physical link status
octeontx2-pf: ethtool physical link configuration

Felix Manlunas (1):
octeontx2-af: Add new CGX_CMD to get PHY FEC statistics

 drivers/net/ethernet/marvell/octeontx2/af/cgx.c    | 258 +++++++++++++-
 drivers/net/ethernet/marvell/octeontx2/af/cgx.h    |  10 +
 .../net/ethernet/marvell/octeontx2/af/cgx_fw_if.h  |  70 +++-
 drivers/net/ethernet/marvell/octeontx2/af/mbox.h   |  89 ++++-
 drivers/net/ethernet/marvell/octeontx2/af/rvu.h    |   4 +
 .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c    |  82 +++++
 .../ethernet/marvell/octeontx2/nic/otx2_common.c   |  20 ++
 .../ethernet/marvell/octeontx2/nic/otx2_common.h   |   6 +
 .../ethernet/marvell/octeontx2/nic/otx2_ethtool.c  | 381 ++++++++++++++++++++-
 .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c   |   3 +
 10 files changed, 917 insertions(+), 6 deletions(-)

--
2.7.4