1. 09 10月, 2019 1 次提交
    • Y
      net: hns3: support tx-scatter-gather-fraglist feature · 8ae10cfb
      Yunsheng Lin 提交于
      The hardware supports up to 8 TX BD for non-tso skb and up to
      63 TX BD for TSO skb. Currently, the hns3 driver supports RX skb
      with fraglist when HW GRO is enabled, when the stack forwards a
      RX skb with fraglist, the stack need to linearize the skb before
      sending to other interface without TX fraglist support.
      
      This patch adds support for TX fraglist. The performance increases
      from 1 GByte to 1.5 GByte for one iperf TCP stream during
      forwarding test after this patch. BTW, the minimum BD number of
      ring should be updated to 72 for supporting TX fraglist.
      
      This patch also changes the error handling of some function that
      called by hns3_fill_desc, which returns BD num when there is no
      error, change some macro to more meaningful name.
      Signed-off-by: NYunsheng Lin <linyunsheng@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
      8ae10cfb
  2. 30 8月, 2019 1 次提交
  3. 19 8月, 2019 1 次提交
  4. 10 8月, 2019 2 次提交
  5. 02 8月, 2019 1 次提交
  6. 29 7月, 2019 1 次提交
  7. 06 7月, 2019 1 次提交
  8. 29 6月, 2019 2 次提交
  9. 15 6月, 2019 1 次提交
  10. 04 6月, 2019 1 次提交
  11. 29 5月, 2019 1 次提交
  12. 08 5月, 2019 3 次提交
  13. 27 4月, 2019 1 次提交
  14. 20 4月, 2019 2 次提交
  15. 05 4月, 2019 1 次提交
  16. 22 3月, 2019 1 次提交
  17. 25 2月, 2019 3 次提交
  18. 31 1月, 2019 1 次提交
  19. 24 1月, 2019 1 次提交
  20. 19 1月, 2019 1 次提交
  21. 19 12月, 2018 1 次提交
  22. 24 11月, 2018 1 次提交
  23. 18 11月, 2018 1 次提交
  24. 16 11月, 2018 3 次提交
  25. 10 11月, 2018 3 次提交
    • H
      net: hns3: add PCIe FLR support for PF · 6b9a97ee
      Huazhong Tan 提交于
      This patch implements the .reset_prepare and .reset_done
      ops from pci framework to support the PF FLR.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6b9a97ee
    • H
      net: hns3: add reset handling for VF when doing PF reset · aa5c4f17
      Huazhong Tan 提交于
      When PF performs a function reset, the hardware will reset both PF
      and all the VF belong to this PF. Hence, both PF's driver and VF's
      driver need to perform corresponding reset operations.
      
      Before PF driver asserting function reset to hardware, it firstly
      set up VF's hardware reset status, and inform the VF driver with
      HNAE3_VF_PF_FUNC_RESET, then VF driver sets this reset type to
      reset_pending and shechule reset task to stop IO and waits for the
      hardware reset status to clear. When PF driver has reinitialized the
      hardware and is ready to process mailbox from VF, PF driver clears
      VF's hardware reset status for VF to continue its reset process.
      
      Also, this patch uses readl_poll_timeout to simplify the hardware reset
      status waitting.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NYunsheng Lin <linyunsheng@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aa5c4f17
    • H
      net: hns3: adjust VF's reset process · dea846e8
      Huazhong Tan 提交于
      Currently when VF need to reset itself, it will send a cmd to PF,
      after receiving the VF reset requset, PF sends a cmd to inform
      VF to enter the reset process and send a cmd to firmware to do the
      actual reset for the VF, it is possible that firmware has resetted
      the VF, but VF has not entered the reset process, which may cause
      IO not stopped problem when firmware is resetting VF.
      
      This patch fixes it by adjusting the VF reset process, when VF
      need to reset itself, it will enter the reset process first, and
      it will tell the PF to send cmd to firmware to reset itself.
      
      Add member reset_pending to struct hclgevf_dev, which indicates that
      there is reset event need to be processed by the VF's reset task, and
      the VF's reset task chooses the highest-level one and clears other
      low-level one when it processes reset_pending.
      
      hclge_inform_reset_assert_to_vf function is unused now, but it will
      be used to support the PF reset with VF working, so declare it in
      the header file.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NYunsheng Lin <linyunsheng@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dea846e8
  26. 08 11月, 2018 3 次提交
  27. 01 11月, 2018 1 次提交