1. 26 8月, 2021 1 次提交
  2. 09 6月, 2021 2 次提交
  3. 01 6月, 2021 1 次提交
    • J
      net: hns3: add support for modify VLAN filter state · 2ba30662
      Jian Shen 提交于
      Previously, with hardware limitation, the port VLAN filter are
      effective for both PF and its VFs simultaneously, so a single
      function is not able to enable/disable separately, and the VLAN
      filter state is default enabled. Now some device supports each
      function to bypass port VLAN filter, then each function can
      switch VLAN filter separately. Add capability flag to check
      whether the device supports modify VLAN filter state. If flag
      on, user will be able to modify the VLAN filter state by ethtool
      -K.
      
      Furtherly, the default VLAN filter state is also changed
      according to whether non-zero VLAN used. Then the device can
      receive packet with any VLAN tag if only VLAN 0 used.
      
      The function hclge_need_enable_vport_vlan_filter() is used to
      help implement above changes. And the VLAN filter handle for
      promisc mode can also be simplified by this function.
      Signed-off-by: NJian Shen <shenjian15@huawei.com>
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      2ba30662
  4. 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
  5. 27 3月, 2021 1 次提交
  6. 14 3月, 2021 1 次提交
  7. 12 3月, 2021 2 次提交
  8. 13 2月, 2021 2 次提交
  9. 07 2月, 2021 1 次提交
  10. 10 12月, 2020 1 次提交
  11. 02 12月, 2020 2 次提交
  12. 28 9月, 2020 4 次提交
  13. 25 9月, 2020 1 次提交
  14. 31 5月, 2020 1 次提交
  15. 28 5月, 2020 1 次提交
  16. 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
  17. 01 11月, 2019 2 次提交
  18. 02 8月, 2019 3 次提交
  19. 29 7月, 2019 1 次提交
  20. 06 7月, 2019 1 次提交
  21. 29 6月, 2019 1 次提交
  22. 04 6月, 2019 1 次提交
  23. 29 5月, 2019 1 次提交
  24. 15 4月, 2019 1 次提交
  25. 09 4月, 2019 1 次提交
  26. 21 3月, 2019 1 次提交
  27. 22 2月, 2019 1 次提交
  28. 03 2月, 2019 2 次提交