1. 16 6月, 2021 1 次提交
  2. 12 6月, 2021 1 次提交
  3. 10 6月, 2021 1 次提交
  4. 09 6月, 2021 5 次提交
  5. 08 6月, 2021 3 次提交
  6. 01 6月, 2021 5 次提交
  7. 25 5月, 2021 2 次提交
  8. 21 5月, 2021 1 次提交
  9. 15 5月, 2021 2 次提交
    • Jiaran Zhang's avatar
      net: hns3: refactor dump reset info of debugfs · 1a7ff828
      Jiaran Zhang 提交于
      Currently, the debugfs command for reset info is implemented by
      "echo xxxx > cmd", and record the information in dmesg. It's
      unnecessary and heavy. To improve it, create a single file
      "reset_info" for it, and query it by command "cat reset_info",
      return the result to userspace, rather than record in dmesg.
      
      The display style is below:
      $cat reset_info
      PF reset count: 0
      FLR reset count: 0
      GLOBAL reset count: 0
      IMP reset count: 0
      reset done count: 0
      HW reset done count: 0
      reset count: 0
      reset fail count: 0
      vector0 interrupt enable status: 0x1
      reset interrupt source: 0x0
      reset interrupt status: 0x0
      RAS interrupt status:0x0
      hardware reset status: 0x0
      handshake status: 0x80
      function reset status: 0x0
      
      Change to the "hclge_show_rst_info" in the "hclge_reset_err_handle",
      when the reset fails, display reset info immediately.
      Signed-off-by: Jiaran Zhang's avatarJiaran Zhang <zhangjiaran@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1a7ff828
    • H
      net: hns3: support RXD advanced layout · 79664077
      Huazhong Tan 提交于
      Currently, the driver gets packet type by parsing the
      L3_ID/L4_ID/OL3_ID/OL4_ID from RX descriptor, it's
      time-consuming.
      
      Now some new devices support RXD advanced layout, which combines
      previous OL3_ID/OL4_ID to 8bit ptype field, so the driver gets
      packet type by looking up only one table, and L3_ID/L4_ID become
      reserved fields.
      
      Considering compatibility, the firmware will report capability of
      RXD advanced layout, the driver will identify and enable it by
      default. This patch provides basic function: identify and enable
      the RXD advanced layout, and refactor out hns3_rx_checksum() by
      using ptype table to handle RX checksum if supported.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      79664077
  10. 01 5月, 2021 1 次提交
  11. 20 4月, 2021 1 次提交
  12. 16 4月, 2021 1 次提交
  13. 10 4月, 2021 1 次提交
  14. 09 4月, 2021 2 次提交
  15. 06 4月, 2021 2 次提交
  16. 30 3月, 2021 4 次提交
  17. 29 3月, 2021 1 次提交
    • L
      net: hns3: no return statement in hclge_clear_arfs_rules · 54422bd4
      Liu Jian 提交于
      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 'hclge_clear_arfs_rules':
      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:7173:1: error: no return statement in function returning non-void [-Werror=return-type]
       7173 | }
            | ^
      cc1: some warnings being treated as errors
      make[6]: *** [scripts/Makefile.build:273: drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.o] Error 1
      make[5]: *** [scripts/Makefile.build:534: drivers/net/ethernet/hisilicon/hns3/hns3pf] Error 2
      make[4]: *** [scripts/Makefile.build:534: drivers/net/ethernet/hisilicon/hns3] Error 2
      make[4]: *** Waiting for unfinished jobs....
      make[3]: *** [scripts/Makefile.build:534: drivers/net/ethernet/hisilicon] Error 2
      make[2]: *** [scripts/Makefile.build:534: drivers/net/ethernet] Error 2
      make[1]: *** [scripts/Makefile.build:534: drivers/net] Error 2
      make[1]: *** Waiting for unfinished jobs....
      make: *** [Makefile:1980: drivers] Error 2
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: NLiu Jian <liujian56@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      54422bd4
  18. 27 3月, 2021 5 次提交
  19. 23 3月, 2021 1 次提交
    • J
      net: hns3: add support for user-def data of flow director · 67b0e142
      Jian Shen 提交于
      For DEVICE_VERSION_V3, the hardware supports to match specified
      data in the specified offset of packet payload. Each layer can
      have one offset, and can't be masked when configure flow director
      rule by ethtool command. The layer is selected based on the
      flow-type, ether for L2, ip4/ipv6 for L3, and tcp4/tcp6/udp4/udp6
      for L4. For example, tcp4/tcp6/udp4/udp6 rules share the same
      user-def offset, but each rule can have its own user-def value.
      
      For the user-def field of ethtool -N/U command is 64 bits long.
      The bit 0~15 is used for user-def value, and bit 32~47 for user-def
      offset in HNS3 driver.
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      67b0e142