1. 15 5月, 2021 2 次提交
    • Jiaran Zhang's avatar
      net: hns3: refactor dump m7 info of debugfs · 0b198b0d
      Jiaran Zhang 提交于
      Currently, the debugfs command for m7 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
      "imp_info" for it, and query it by command "cat imp_info",
      return the result to userspace, rather than record in dmesg.
      
      The display style is below:
      $cat imp_info
      offset | data
      0x0000 | 0x00000000  0x00000000
      0x0008 | 0x00000000  0x00000000
      0x0010 | 0x00000000  0x00000001
      0x0018 | 0x00000000  0x00000000
      0x0020 | 0x00000000  0x00000000
      0x0028 | 0x00000000  0x00000000
      0x0030 | 0x00000000  0x00000000
      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>
      0b198b0d
    • 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
  2. 27 3月, 2021 1 次提交
  3. 14 3月, 2021 1 次提交
  4. 12 3月, 2021 2 次提交
  5. 13 2月, 2021 2 次提交
  6. 07 2月, 2021 1 次提交
  7. 10 12月, 2020 1 次提交
  8. 02 12月, 2020 2 次提交
  9. 28 9月, 2020 4 次提交
  10. 25 9月, 2020 1 次提交
  11. 31 5月, 2020 1 次提交
  12. 28 5月, 2020 1 次提交
  13. 21 12月, 2019 1 次提交
    • H
      net: hns3: optimization for CMDQ uninitialization · a3374d7d
      Huazhong Tan 提交于
      When uninitializing CMDQ, HCLGE_STATE_CMD_DISABLE will
      be set up firstly, then the driver does not send command
      anymore. So, hclge_free_cmd_desc can be called without
      holding ring->lock. hclge_destroy_cmd_queue() and
      hclge_destroy_queue() are unnecessary now, so removes them,
      the VF driver has implemented currently.
      
      BTW, the VF driver should set up HCLGEVF_STATE_CMD_DISABLE
      as well in the hclgevf_cmd_uninit(), just likes what the PF
      driver does.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a3374d7d
  14. 01 11月, 2019 2 次提交
  15. 02 8月, 2019 3 次提交
  16. 29 7月, 2019 1 次提交
  17. 06 7月, 2019 1 次提交
  18. 29 6月, 2019 1 次提交
  19. 04 6月, 2019 1 次提交
  20. 29 5月, 2019 1 次提交
  21. 15 4月, 2019 1 次提交
  22. 09 4月, 2019 1 次提交
  23. 21 3月, 2019 1 次提交
  24. 22 2月, 2019 1 次提交
  25. 03 2月, 2019 2 次提交
  26. 24 1月, 2019 2 次提交
  27. 08 1月, 2019 1 次提交
  28. 10 11月, 2018 1 次提交
    • H
      net: hns3: implement the IMP reset processing for PF · 6dd22bbc
      Huazhong Tan 提交于
      The current code only print the prompt message after receiving
      the IMP reset interrupt and does not perform the corresponding driver
      reset operation. This patch implements the missing IMP reset handling
      in the driver.
      1. The driver sets the HCLGE_STATE_CMD_DISABLE to stop sending command
         after receiving the IMP reset interrupt.
      2. The driver needs to notify the hardware to reload the IMP firmware.
      3. The IMP firmware reloading makes the reset time of hardware longer,
         so it is necessary to extend the driver's waiting time to wait for
         the hardware reset to complete.
      4. In hclge_check_event_cause, IMP reset event should have higher
         priority than other events.
      
      Also, after clearing HCLGE_STATE_CMD_DISABLE in the hclge_cmd_init(),
      it needs to check whether there is a pending reset, if so, just set
      the HCLGE_STATE_CMD_DISABLE back and return.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6dd22bbc