1. 01 8月, 2019 2 次提交
    • P
      ice: add lp_advertising flow control support · 5a056cd7
      Paul Greenwalt 提交于
      Add support for reporting link partner advertising when
      ETHTOOL_GLINKSETTINGS defined. Get pause param reports the Tx/Rx
      pause configured, and then ethtool issues ETHTOOL_GSET ioctl and
      ice_get_settings_link_up reports the negotiated Tx/Rx pause. Negotiated
      pause frame report per IEEE 802.3-2005 table 288-3.
      
      $ ethtool --show-pause ens6f0
      Pause parameters for ens6f0:
      Autonegotiate:  on
      RX:             on
      TX:             on
      RX negotiated:  on
      TX negotiated:  on
      
      $ ethtool ens6f0
      Settings for ens6f0:
              Supported ports: [ FIBRE ]
              Supported link modes:   25000baseCR/Full
              Supported pause frame use: Symmetric
              Supports auto-negotiation: Yes
              Supported FEC modes: None BaseR RS
              Advertised link modes:  25000baseCR/Full
              Advertised pause frame use: Symmetric Receive-only
              Advertised auto-negotiation: Yes
              Advertised FEC modes: None BaseR RS
              Link partner advertised link modes:  Not reported
              Link partner advertised pause frame use: Symmetric
              Link partner advertised auto-negotiation: Yes
              Link partner advertised FEC modes: Not reported
              Speed: 25000Mb/s
              Duplex: Full
              Port: Direct Attach Copper
              PHYAD: 0
              Transceiver: internal
              Auto-negotiation: on
              Supports Wake-on: g
              Wake-on: g
              Current message level: 0x00000007 (7)
                                     drv probe link
              Link detected: yes
      
      When ETHTOOL_GLINKSETTINGS is not defined, get pause param reports the
      negotiated Tx/Rx pause.
      Signed-off-by: NPaul Greenwalt <paul.greenwalt@intel.com>
      Tested-by: NAndrew Bowers <andrewx.bowers@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      5a056cd7
    • Y
      staging/octeon: Fix build error without CONFIG_NETDEVICES · 6a7ce95d
      YueHaibing 提交于
      While do COMPILE_TEST build without CONFIG_NETDEVICES,
      we get Kconfig warning:
      
      WARNING: unmet direct dependencies detected for PHYLIB
        Depends on [n]: NETDEVICES [=n]
        Selected by [y]:
        - OCTEON_ETHERNET [=y] && STAGING [=y] && (CAVIUM_OCTEON_SOC && NETDEVICES [=n] || COMPILE_TEST [=y])
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Reported-by: NMark Brown <broonie@kernel.org>
      Fixes: 171a9bae ("staging/octeon: Allow test build on !MIPS")
      Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6a7ce95d
  2. 31 7月, 2019 36 次提交
  3. 30 7月, 2019 2 次提交