1. 02 8月, 2019 1 次提交
    • H
      net: hns3: fix some reset handshake issue · 6b428b4f
      Huazhong Tan 提交于
      Currently, the driver sets handshake status to tell the hardware
      that the driver have downed the netdev and it can continue with
      reset process. The driver will clear the handshake status when
      re-initializing the CMDQ, and does not recover this status
      when reset fail, which may cause the hardware to wait for
      the handshake status to be set and not being able to continue
      with reset process.
      
      So this patch delays clearing handshake status just before UP,
      and recovers this status when reset fail.
      
      BTW, this patch adds a new function hclge(vf)_reset_handshake() to
      deal with the reset handshake issue, and renames
      HCLGE(VF)_NIC_CMQ_ENABLE to HCLGE(VF)_NIC_SW_RST_RDY which
      represents this register bit more accurately.
      
      Fixes: ada13ee3 ("net: hns3: add handshake with hardware while doing reset")
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Reviewed-by: NPeng Li <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b428b4f
  2. 29 7月, 2019 1 次提交
  3. 06 7月, 2019 2 次提交
  4. 29 6月, 2019 1 次提交
  5. 26 6月, 2019 1 次提交
  6. 15 6月, 2019 1 次提交
  7. 10 6月, 2019 5 次提交
  8. 29 5月, 2019 4 次提交
  9. 04 5月, 2019 1 次提交
    • J
      net: hns3: add support for multiple media type · 88d10bd6
      Jian Shen 提交于
      Previously, we can only identify copper and fiber type, the
      supported link modes of port information are always showing
      SR type. This patch adds support for multiple media types,
      include SR, LR CR, KR. Driver needs to query the media type
      from firmware periodicly, and updates the port information.
      
      The new port information looks like this:
      Settings for eth0:
              Supported ports: [ FIBRE ]
              Supported link modes:   25000baseCR/Full
                                      25000baseSR/Full
                                      1000baseX/Full
                                      10000baseCR/Full
                                      10000baseSR/Full
                                      10000baseLR/Full
              Supported pause frame use: Symmetric
              Supports auto-negotiation: No
              Supported FEC modes: None BaseR
              Advertised link modes:  Not reported
              Advertised pause frame use: No
              Advertised auto-negotiation: No
              Advertised FEC modes: Not reported
              Speed: 10000Mb/s
              Duplex: Full
              Port: FIBRE
              PHYAD: 0
              Transceiver: internal
              Auto-negotiation: off
              Current message level: 0x00000036 (54)
                                     probe link ifdown ifup
              Link detected: yes
      
      In order to be compatible with old firmware which only support
      sfp speed, we remained using the same query command, and kept
      the former logic.
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Signed-off-by: NPeng Li <lipeng321@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      88d10bd6
  10. 27 4月, 2019 2 次提交
  11. 20 4月, 2019 3 次提交
  12. 15 4月, 2019 1 次提交
  13. 09 4月, 2019 3 次提交
  14. 05 4月, 2019 1 次提交
  15. 20 3月, 2019 1 次提交
  16. 25 2月, 2019 2 次提交
  17. 03 2月, 2019 2 次提交
  18. 31 1月, 2019 3 次提交
  19. 27 1月, 2019 1 次提交
  20. 24 1月, 2019 2 次提交
  21. 19 1月, 2019 1 次提交
  22. 20 12月, 2018 1 次提交