1. 25 8月, 2019 1 次提交
  2. 19 8月, 2019 1 次提交
  3. 10 8月, 2019 1 次提交
  4. 02 8月, 2019 1 次提交
  5. 29 7月, 2019 2 次提交
  6. 26 6月, 2019 2 次提交
  7. 15 6月, 2019 1 次提交
  8. 10 6月, 2019 2 次提交
  9. 04 6月, 2019 1 次提交
  10. 29 5月, 2019 2 次提交
  11. 27 5月, 2019 2 次提交
  12. 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
  13. 20 4月, 2019 2 次提交
  14. 16 4月, 2019 1 次提交
  15. 15 4月, 2019 3 次提交
  16. 25 2月, 2019 1 次提交
  17. 22 2月, 2019 3 次提交
  18. 31 1月, 2019 1 次提交
  19. 24 1月, 2019 2 次提交
  20. 19 1月, 2019 1 次提交
  21. 19 12月, 2018 1 次提交
  22. 16 12月, 2018 1 次提交
  23. 08 12月, 2018 1 次提交
    • S
      net: hns3: add handling of hw errors reported through MSIX · f6162d44
      Salil Mehta 提交于
      This patch adds handling for HNS3 hardware errors(non-standard)
      which are reported through MSIX interrupts and not through
      PCIe AER channel.
      
      These MSIX reported hardware errors are handled using common
      misc. interrupt handler. Hardware error related registers
      cannot be cleared in context to the interrupt received as
      they require *heavy* access to hardware using IMP(Integrated
      Mangement Processor) commands. Hence, we defer the clearing
      of such error events till later time.
      
      Since, we have defered exact identification of errors we
      will have to defer the level of receovery/reset which
      might be required. Hence, a new reset type UNKNOWN reset
      has been introduced which effectively defers the assertion
      of the reset till we get hold of kind of errors at later
      time.
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: NShiju Jose <shiju.jose@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f6162d44
  24. 04 12月, 2018 1 次提交
  25. 28 11月, 2018 1 次提交
  26. 24 11月, 2018 1 次提交
    • L
      net: hns3: Add "FD flow table" info query function · 3c666b58
      liuzhongzhu 提交于
      All the Flow Director rules are stored in tcam blocks.
      For each bit of tcam entry, the match value
      depends on two input value(x, y).
      
      debugfs command:
      echo dump fd tcam > cmd
      
      Sample output:
      root@(none)# echo dump fd tcam > cmd
      hns3 0000:7d:00.0: read result tcam key x(31):
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 08000000
      hns3 0000:7d:00.0: 00000600
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: read result tcam key y(31):
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: f7ff0000
      hns3 0000:7d:00.0: 0000f900
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 00000000
      hns3 0000:7d:00.0: 0000fff8
      root@(none)#
      Signed-off-by: Nliuzhongzhu <liuzhongzhu@huawei.com>
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3c666b58
  27. 18 11月, 2018 2 次提交