1. 28 9月, 2020 3 次提交
  2. 25 9月, 2020 1 次提交
  3. 29 5月, 2020 1 次提交
  4. 11 5月, 2020 1 次提交
  5. 30 4月, 2020 1 次提交
  6. 21 4月, 2020 1 次提交
  7. 07 1月, 2020 1 次提交
  8. 06 11月, 2019 1 次提交
  9. 01 11月, 2019 2 次提交
  10. 22 10月, 2019 1 次提交
  11. 09 10月, 2019 2 次提交
  12. 30 8月, 2019 1 次提交
    • Y
      net: hns3: not allow SSU loopback while execute ethtool -t dev · dd2956ea
      Yufeng Mo 提交于
      The current loopback mode is to add 0x1F to the SMAC address
      as the DMAC address and enable the promiscuous mode.
      However, if the VF address is the same as the DMAC address,
      the loopback test fails.
      
      Loopback can be enabled in three places: SSU, MAC, and serdes.
      By default, SSU loopback is enabled, so if the SMAC and the DMAC
      are the same, the packets are looped back in the SSU. If SSU loopback
      is disabled, packets can reach MAC even if SMAC is the same as DMAC.
      
      Therefore, this patch disables the SSU loopback before the loopback
      test. In this way, the SMAC and DMAC can be the same, and the
      promiscuous mode does not need to be enabled. And this is not
      valid in version 0x20.
      
      This patch also uses a macro to replace 0x1F.
      
      Fixes: c39c4d98 ("net: hns3: Add mac loopback selftest support in hns3 driver")
      Signed-off-by: NYufeng Mo <moyufeng@huawei.com>
      Reviewed-by: NPeng Li <lipeng321@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dd2956ea
  13. 10 8月, 2019 1 次提交
  14. 02 8月, 2019 5 次提交
  15. 06 7月, 2019 1 次提交
  16. 29 6月, 2019 1 次提交
  17. 10 6月, 2019 3 次提交
  18. 06 6月, 2019 1 次提交
  19. 29 5月, 2019 1 次提交
  20. 04 5月, 2019 2 次提交
    • J
      net: hns3: add support for FEC encoding control · 7e6ec914
      Jian Shen 提交于
      This patch adds support for FEC encoding control, user can change
      FEC mode by command ethtool --set-fec, and get FEC mode by command
      ethtool --show-fec. The fec capability is changed follow the port
      speed. If autoneg on, the user configure fec mode will be overwritten
      by autoneg result.
      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>
      7e6ec914
    • 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
  21. 20 4月, 2019 2 次提交
  22. 25 2月, 2019 1 次提交
  23. 22 2月, 2019 1 次提交
  24. 03 2月, 2019 1 次提交
  25. 24 1月, 2019 2 次提交
  26. 19 12月, 2018 1 次提交
  27. 16 12月, 2018 1 次提交