1. 26 7月, 2021 8 次提交
  2. 17 7月, 2021 4 次提交
  3. 16 7月, 2021 4 次提交
  4. 15 7月, 2021 3 次提交
  5. 09 4月, 2021 1 次提交
  6. 28 9月, 2020 5 次提交
  7. 25 9月, 2020 1 次提交
  8. 29 5月, 2020 1 次提交
  9. 11 5月, 2020 1 次提交
  10. 30 4月, 2020 1 次提交
  11. 21 4月, 2020 1 次提交
  12. 07 1月, 2020 1 次提交
  13. 06 11月, 2019 1 次提交
  14. 01 11月, 2019 2 次提交
  15. 22 10月, 2019 1 次提交
  16. 09 10月, 2019 2 次提交
  17. 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
  18. 10 8月, 2019 1 次提交
  19. 02 8月, 2019 1 次提交
    • H
      net: hns3: clear reset interrupt status in hclge_irq_handle() · 72e2fb07
      Huazhong Tan 提交于
      Currently, the reset interrupt is cleared in the reset task, which
      is too late. Since, when the hardware finish the previous reset,
      it can begin to do a new global/IMP reset, if this new coming reset
      type is same as the previous one, the driver will clear them together,
      then driver can not get that there is another reset, but the hardware
      still wait for the driver to deal with the second one.
      
      So this patch clears PF's reset interrupt status in the
      hclge_irq_handle(), the hardware waits for handshaking from
      driver before doing reset, so the driver and hardware deal with reset
      one by one.
      
      BTW, when VF doing global/IMP reset, it reads PF's reset interrupt
      register to get that whether PF driver's re-initialization is done,
      since VF's re-initialization should be done after PF's. So we add
      a new command and a register bit to do that. When VF receive reset
      interrupt, it sets up this bit, and PF finishes re-initialization
      send command to clear this bit, then VF do re-initialization.
      
      Fixes: 4ed340ab ("net: hns3: Add reset process in hclge_main")
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Reviewed-by: NYunsheng Lin <linyunsheng@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      72e2fb07