diff options
| author | Yinjun Zhang <yinjun.zhang@corigine.com> | 2022-09-29 10:58:31 +0200 | 
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-30 18:47:53 -0700 | 
| commit | 8d545385bf267e071fee1b6d00d5639cd46aae13 (patch) | |
| tree | 0d11a0847af7ecb573affa7fca8a7bbea85227b3 /lib/mpi/mpi-add.c | |
| parent | b1e4f11e426dba8fd8baa549208e40dbe39c03de (diff) | |
nfp: add support for link auto negotiation
Report the auto negotiation capability if it's supported
in management firmware, and advertise it if it's enabled.
Changing port speed is not allowed when autoneg is enabled.
The ethtool <intf> command displays the auto-neg capability:
  # ethtool enp1s0np0
  Settings for enp1s0np0:
          Supported ports: [ FIBRE ]
          Supported link modes:   Not reported
          Supported pause frame use: Symmetric
          Supports auto-negotiation: Yes
          Supported FEC modes: None        RS      BASER
          Advertised link modes:  Not reported
          Advertised pause frame use: Symmetric
          Advertised auto-negotiation: Yes
          Advertised FEC modes: None       RS      BASER
          Speed: 25000Mb/s
          Duplex: Full
          Auto-negotiation: on
          Port: FIBRE
          PHYAD: 0
          Transceiver: internal
          Link detected: yes
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
