1. 02 12月, 2020 1 次提交
  2. 22 11月, 2020 2 次提交
    • Y
      net: hns3: add support for pf querying new interrupt resources · 3a6863e4
      Yufeng Mo 提交于
      For HNAE3_DEVICE_VERSION_V3, a maximum of 1281 interrupt
      resources are supported. To utilize these new resources,
      extend the corresponding field or variable to 16bit type,
      and remove the restriction of NIC client that only use a
      maximum of 65 interrupt vectors. In addition, the I/O address
      of the extended interrupt resources are different, so an extra
      handler is needed.
      
      Currently, the total number of interrupts is the sum of RoCE's
      number and RoCE's offset (RoCE is in front of NIC), since
      the number of both NIC and RoCE are same. For readability,
      rewrite the corresponding field of the command, rename the
      RoCE's offset field as the number of NIC interrupts, then
      the total number of interrupts is sum of the number of RoCE
      and NIC, and replace vport->back with hdev in
      hclge_init_roce_base_info() for simplifying the code.
      Signed-off-by: NYufeng Mo <moyufeng@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      3a6863e4
    • Y
      net: hns3: add support for 1280 queues · 9a5ef4aa
      Yonglong Liu 提交于
      For DEVICE_VERSION_V1/2, there are total 1024 queues and
      queue sets. For DEVICE_VERSION_V3, it increases to 1280,
      and can be assigned to one pf, so remove the limitation
      of 1024.
      
      To keep compatible with DEVICE_VERSION_V1/2 and old driver
      version, the queue number is split into two part:
      tqp_num(range 0~1023) and ext_tqp_num(range 1024~1279).
      Signed-off-by: NYonglong Liu <liuyonglong@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      9a5ef4aa
  3. 18 11月, 2020 1 次提交
  4. 28 9月, 2020 5 次提交
  5. 25 9月, 2020 1 次提交
  6. 29 5月, 2020 1 次提交
  7. 11 5月, 2020 1 次提交
  8. 30 4月, 2020 1 次提交
  9. 21 4月, 2020 1 次提交
  10. 07 1月, 2020 1 次提交
  11. 06 11月, 2019 1 次提交
  12. 01 11月, 2019 2 次提交
  13. 22 10月, 2019 1 次提交
  14. 09 10月, 2019 2 次提交
  15. 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
  16. 10 8月, 2019 1 次提交
  17. 02 8月, 2019 5 次提交
  18. 06 7月, 2019 1 次提交
  19. 29 6月, 2019 1 次提交
  20. 10 6月, 2019 3 次提交
  21. 06 6月, 2019 1 次提交
  22. 29 5月, 2019 1 次提交
  23. 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
  24. 20 4月, 2019 2 次提交
  25. 25 2月, 2019 1 次提交